Skip to content

Commit 32fac0c

Browse files
committed
MQE-1427: Support _CREDS in <magentoCLI> action and in Data
- Correcting an issue around null values in the PersistedObjectHandler.
1 parent 637c3eb commit 32fac0c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public function createEntity(
8484
foreach ($dependentObjectKeys as $objectKey) {
8585
$retrievedDependentObjects[] = $this->retrieveEntity($objectKey, $scope);
8686
}
87+
88+
foreach ($overrideFields as $index => $field) {
89+
$overrideFields[$index] = CredentialStore::getInstance()->decryptAllSecretsInString($field);
90+
}
8791

8892
$retrievedEntity = DataObjectHandler::getInstance()->getObject($entity);
8993
$persistedObject = new DataPersistenceHandler(

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
755755
if (count($customEntityFields) > 1) {
756756
$createEntityFunctionCall .= ",\n\t\t\t\${$stepKey}Fields";
757757
} else {
758-
$createEntityFunctionCall .= ",\n\t\t\tnull";
758+
$createEntityFunctionCall .= ",\n\t\t\t[]";
759759
}
760760
if ($storeCode !== null) {
761761
$createEntityFunctionCall .= ",\n\t\t\t\"{$storeCode}\"";

0 commit comments

Comments
 (0)