Skip to content

Commit 188d6ba

Browse files
committed
MQE-1513: createData throws a useless error message during runtime when the entity does not exist
reverted changes reworded message
1 parent 28804f4 commit 188d6ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/DataGenerator/Handlers/PersistedObjectHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testCreateEntityWithNonExistingName()
4040
$scope = PersistedObjectHandler::TEST_SCOPE;
4141

4242
$exceptionMessage = "Entity \"" . $entityName . "\" does not exist." .
43-
"\nException occurred parsing action at StepKey \"" . $entityStepKey . "\"";
43+
"\nException occurred executing action at StepKey \"" . $entityStepKey . "\"";
4444

4545
$this->expectException(TestReferenceException::class);
4646

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/PersistedObjectHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function createEntity(
101101
if ($retrievedEntity === null) {
102102
throw new TestReferenceException(
103103
"Entity \"" . $entity . "\" does not exist." .
104-
"\nException occurred parsing action at StepKey \"" . $key . "\""
104+
"\nException occurred executing action at StepKey \"" . $key . "\""
105105
);
106106
}
107107

0 commit comments

Comments
 (0)