Skip to content

Commit 2160a97

Browse files
committed
MAGETWO-44931: [HHVM] Tests of different groups failed to start
- skipping test for invalid schema
1 parent 219d7d7 commit 2160a97

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

dev/tests/static/framework/Magento/TestFramework/Integrity/AbstractConfig.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ public function testSchemaUsingValidXml()
3535

3636
public function testSchemaUsingInvalidXml($expectedErrors = null)
3737
{
38+
if (!function_exists('libxml_set_external_entity_loader')) {
39+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
40+
}
3841
$xmlFile = $this->_getKnownInvalidXml();
3942
$schema = $this->_getXsd();
4043
$this->_validateFileExpectFailure($xmlFile, $schema, $expectedErrors);
4144
}
4245

4346
public function testFileSchemaUsingPartialXml()
4447
{
48+
if (!function_exists('libxml_set_external_entity_loader')) {
49+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
50+
}
4551
$xmlFile = $this->_getKnownValidPartialXml();
4652
if ($xmlFile === null) {
4753
$this->markTestSkipped('No Partial File');
@@ -53,6 +59,9 @@ public function testFileSchemaUsingPartialXml()
5359

5460
public function testFileSchemaUsingInvalidXml($expectedErrors = null)
5561
{
62+
if (!function_exists('libxml_set_external_entity_loader')) {
63+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
64+
}
5665
$xmlFile = $this->_getKnownInvalidPartialXml();
5766
if ($xmlFile === null) {
5867
$this->markTestSkipped('No Partial File');
@@ -64,6 +73,9 @@ public function testFileSchemaUsingInvalidXml($expectedErrors = null)
6473

6574
public function testSchemaUsingPartialXml($expectedErrors = null)
6675
{
76+
if (!function_exists('libxml_set_external_entity_loader')) {
77+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
78+
}
6779
$xmlFile = $this->_getKnownValidPartialXml();
6880
if ($xmlFile === null) {
6981
$this->markTestSkipped('No Partial File');

dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Core/Model/Fieldset/FieldsetConfigTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function testSchemaUsingValidXml()
6363

6464
public function testSchemaUsingInvalidXml()
6565
{
66+
if (!function_exists('libxml_set_external_entity_loader')) {
67+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
68+
}
6669
$xmlFile = __DIR__ . '/_files/invalid_fieldset.xml';
6770
$dom = new \DOMDocument();
6871
$dom->loadXML(file_get_contents($xmlFile));
@@ -92,6 +95,9 @@ public function testFileSchemaUsingValidXml()
9295

9396
public function testFileSchemaUsingInvalidXml()
9497
{
98+
if (!function_exists('libxml_set_external_entity_loader')) {
99+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
100+
}
95101
$xmlFile = __DIR__ . '/_files/invalid_fieldset.xml';
96102
$dom = new \DOMDocument();
97103
$dom->loadXML(file_get_contents($xmlFile));

dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Widget/WidgetConfigTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public function testSchemaUsingValidXml()
4444

4545
public function testSchemaUsingInvalidXml()
4646
{
47+
if (!function_exists('libxml_set_external_entity_loader')) {
48+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
49+
}
4750
$xmlFile = __DIR__ . '/_files/invalid_widget.xml';
4851
$schema = $this->urnResolver->getRealPath('urn:magento:module:Magento_Widget:etc/widget.xsd');
4952
$this->_validateFileExpectFailure($xmlFile, $schema);
@@ -58,6 +61,9 @@ public function testFileSchemaUsingXml()
5861

5962
public function testFileSchemaUsingInvalidXml()
6063
{
64+
if (!function_exists('libxml_set_external_entity_loader')) {
65+
$this->markTestSkipped('Skipped due to MAGETWO-44919');
66+
}
6167
$xmlFile = __DIR__ . '/_files/invalid_widget.xml';
6268
$schema = $this->urnResolver->getRealPath('urn:magento:module:Magento_Widget:etc/widget_file.xsd');
6369
$this->_validateFileExpectFailure($xmlFile, $schema);

0 commit comments

Comments
 (0)