@@ -438,6 +438,7 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
438
438
$ visible = null ;
439
439
$ command = null ;
440
440
$ sortOrder = null ;
441
+ $ storeCode = null ;
441
442
442
443
$ assertExpected = null ;
443
444
$ assertActual = null ;
@@ -592,6 +593,9 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
592
593
$ visible = $ customActionAttributes ['visible ' ];
593
594
}
594
595
596
+ if (isset ($ customActionAttributes ['storeCode ' ])) {
597
+ $ storeCode = $ customActionAttributes ['storeCode ' ];
598
+ }
595
599
switch ($ actionObject ->getType ()) {
596
600
case "createData " :
597
601
$ entity = $ customActionAttributes ['entity ' ];
@@ -648,8 +652,8 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
648
652
);
649
653
}
650
654
651
- if (isset ($ customActionAttributes [ ' storeCode ' ] )) {
652
- $ createEntityFunctionCall .= sprintf ("\"%s \"); \n" , $ customActionAttributes [ ' storeCode ' ] );
655
+ if (isset ($ storeCode )) {
656
+ $ createEntityFunctionCall .= sprintf ("\"%s \"); \n" , $ storeCode );
653
657
} else {
654
658
$ createEntityFunctionCall .= "); \n" ;
655
659
}
@@ -684,8 +688,8 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
684
688
$ deleteEntityFunctionCall .= sprintf ("\t\t$%s->deleteEntity( " , $ key );
685
689
}
686
690
687
- if (isset ($ customActionAttributes [ ' storeCode ' ] )) {
688
- $ deleteEntityFunctionCall .= sprintf ("\"%s \"); \n" , $ customActionAttributes [ ' storeCode ' ] );
691
+ if (isset ($ storeCode )) {
692
+ $ deleteEntityFunctionCall .= sprintf ("\"%s \"); \n" , $ storeCode );
689
693
} else {
690
694
$ deleteEntityFunctionCall .= "); \n" ;
691
695
}
@@ -739,8 +743,8 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
739
743
);
740
744
}
741
745
742
- if (isset ($ customActionAttributes [ ' storeCode ' ] )) {
743
- $ updateEntityFunctionCall .= sprintf (", \"%s \"); \n" , $ customActionAttributes [ ' storeCode ' ] );
746
+ if (isset ($ storeCode )) {
747
+ $ updateEntityFunctionCall .= sprintf (", \"%s \"); \n" , $ storeCode );
744
748
} else {
745
749
$ updateEntityFunctionCall .= "); \n" ;
746
750
}
@@ -806,8 +810,8 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
806
810
$ getEntityFunctionCall .= 'null ' ;
807
811
}
808
812
809
- if (isset ($ customActionAttributes [ ' storeCode ' ] )) {
810
- $ getEntityFunctionCall .= sprintf (", \"%s \"); \n" , $ customActionAttributes [ ' storeCode ' ] );
813
+ if (isset ($ storeCode )) {
814
+ $ getEntityFunctionCall .= sprintf (", \"%s \"); \n" , $ storeCode );
811
815
} else {
812
816
$ getEntityFunctionCall .= "); \n" ;
813
817
}
0 commit comments