![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/dev/tests/static/testsuite/Magento/Test/Integrity/App/Language/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Test\Integrity\App\Language; class ConfigTest extends \Magento\TestFramework\Integrity\AbstractConfig { public function testSchemaUsingInvalidXml($expectedErrors = null) { $expectedErrors = [ "Element 'code': [facet 'pattern'] The value 'e_GB' is not accepted by the pattern", "Element 'code': 'e_GB' is not a valid value of the atomic type 'codeType'", "Element 'vendor': [facet 'pattern'] The value 'Magento1' is not accepted by the pattern", "Element 'vendor': 'Magento1' is not a valid value of the atomic type", "Element 'sort_odrer': This element is not expected. Expected is", ]; parent::testSchemaUsingInvalidXml($expectedErrors); } /** * Returns the name of the XSD file to be used to validate the XML * * @return string */ protected function _getXsd() { $urnResolver = new \Magento\Framework\Config\Dom\UrnResolver(); return $urnResolver->getRealPath('urn:magento:framework:App/Language/package.xsd'); } /** * The location of a single valid complete xml file * * @return string */ protected function _getKnownValidXml() { return __DIR__ . '/_files/known_valid.xml'; } /** * The location of a single known invalid complete xml file * * @return string */ protected function _getKnownInvalidXml() { return __DIR__ . '/_files/known_invalid.xml'; } /** * {@inheritdoc} */ protected function _getKnownValidPartialXml() { return; } /** * {@inheritdoc} */ protected function _getFileXsd() { return; } /** * {@inheritdoc} */ protected function _getKnownInvalidPartialXml() { return; } /** * {@inheritdoc} */ protected function _getXmlName() { return; } }