17 $this->urnResolver = new \Magento\Framework\Config\Dom\UrnResolver();
22 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
27 function ($configFile) {
28 $schema = $this->urnResolver->getRealPath(
'urn:magento:module:Magento_Widget:etc/widget.xsd');
40 $xmlFile =
__DIR__ .
'/_files/widget.xml';
41 $schema = $this->urnResolver->getRealPath(
'urn:magento:module:Magento_Widget:etc/widget.xsd');
48 $this->markTestSkipped(
'Skipped due to MAGETWO-45033');
50 $xmlFile =
__DIR__ .
'/_files/invalid_widget.xml';
51 $schema = $this->urnResolver->getRealPath(
'urn:magento:module:Magento_Widget:etc/widget.xsd');
57 $xmlFile =
__DIR__ .
'/_files/widget_file.xml';
58 $schema = $this->urnResolver->getRealPath(
'urn:magento:module:Magento_Widget:etc/widget_file.xsd');
65 $this->markTestSkipped(
'Skipped due to MAGETWO-45033');
67 $xmlFile =
__DIR__ .
'/_files/invalid_widget.xml';
68 $schema = $this->urnResolver->getRealPath(
'urn:magento:module:Magento_Widget:etc/widget_file.xsd');
82 $dom = new \DOMDocument();
86 $this->fail(
'There is a problem with the schema. A known bad XML file passed validation');
100 $dom = new \DOMDocument();
105 'There is a problem with the schema. A known good XML file failed validation: ' . PHP_EOL . implode(
static validateDomDocument(\DOMDocument $dom, $schema, $errorFormat=self::ERROR_FORMAT_DEFAULT)
defined('TESTS_BP')||define('TESTS_BP' __DIR__