Skip to content

Commit 428721a

Browse files
committed
MQE-118: Handle XML merge failures gracefully
- Added exception message check in unit test
1 parent 3409b4b commit 428721a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Test/Config/ActionGroupDomTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ public function testActionGroupDomStepKeyValidation()
3737
public function testActionGroupDomInvalidXmlValidation()
3838
{
3939
$sampleXml = "<actionGroups>
40-
<actionGroup name=\"actionGroupWithoutArguments\">
40+
<actionGroup name=\"sampleActionGroup\">
4141
<wait>
4242
</actionGroup>
4343
</actionGroups>";
4444

4545
$exceptionCollector = new ExceptionCollector();
4646
$this->expectException(ValidationException::class);
47-
new ActionGroupDom($sampleXml, 'bad.xml', $exceptionCollector);
47+
$this->expectExceptionMessage("XML Parse Error: invalid.xml\n");
48+
new ActionGroupDom($sampleXml, 'invalid.xml', $exceptionCollector);
4849
}
4950
}

0 commit comments

Comments
 (0)