File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 88
99use Magento \FunctionalTestingFramework \DataGenerator \Persist \DataPersistenceHandler ;
1010use Magento \FunctionalTestingFramework \Exceptions \TestReferenceException ;
11+ use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
1112
1213class PersistedObjectHandler
1314{
@@ -86,7 +87,12 @@ public function createEntity(
8687 }
8788
8889 foreach ($ overrideFields as $ index => $ field ) {
89- $ overrideFields [$ index ] = CredentialStore::getInstance ()->decryptAllSecretsInString ($ field );
90+ try {
91+ $ overrideFields [$ index ] = CredentialStore::getInstance ()->decryptAllSecretsInString ($ field );
92+ } catch (TestFrameworkException $ e ) {
93+ //do not rethrow if Credentials are not defined
94+ $ overrideFields [$ index ] = $ field ;
95+ }
9096 }
9197
9298 $ retrievedEntity = DataObjectHandler::getInstance ()->getObject ($ entity );
You can’t perform that action at this time.
0 commit comments