Skip to content

Commit 3525758

Browse files
committed
MQE-1021: Empty Action StepKey Attribute Issues
- Made error message slightly more specific
1 parent 914ebe1 commit 3525758

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Test/Util/ActionGroupObjectExtractorTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public function setUp()
2828
*/
2929
public function testEmptyStepKey()
3030
{
31-
$this->expectExceptionMessage("StepKeys cannot be empty. Action='sampleAction' in filename.xml");
31+
$this->expectExceptionMessage(
32+
"StepKeys cannot be empty. Action='sampleAction' in Action Group filename.xml"
33+
);
3234
$this->testActionGroupObjectExtractor->extractActionGroup($this->createBasicActionObjectArray(""));
3335
}
3436

src/Magento/FunctionalTestingFramework/Test/Util/ActionGroupObjectExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function extractActionGroup($actionGroupData)
6565
try {
6666
$actions = $this->actionObjectExtractor->extractActions($actionData);
6767
} catch (\Exception $error) {
68-
throw new XmlException($error->getMessage() . " in " . $actionGroupData[self::FILENAME]);
68+
throw new XmlException($error->getMessage() . " in Action Group " . $actionGroupData[self::FILENAME]);
6969
}
7070

7171
if (array_key_exists(self::ACTION_GROUP_ARGUMENTS, $actionGroupData)) {

0 commit comments

Comments
 (0)