File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/functional/testsuites/Magento/Mtf/TestSuite Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ private function initObjectManager()
102
102
if (!isset ($ filter ['filter ' ])) {
103
103
$ configData ->setFileName ($ configFileName . '.xml ' )->load ($ configFilePath );
104
104
} else {
105
- preg_match ('`variation::(.*?)$` ' , $ filter ['filter ' ], $ variation );
106
- if (isset ( $ variation [ 1 ]) && ! empty ( $ variation [ 1 ]) ) {
107
- $ configData ->setFileName (' basic .xml ' )->load ($ configFilePath );
105
+ $ isValid = preg_match ('`variation::(.*?)$` ' , $ filter ['filter ' ], $ variation );
106
+ if ($ isValid === 1 ) {
107
+ $ configData ->setFileName ($ configFileName . ' .xml ' )->load ($ configFilePath );
108
108
$ data ['rule ' ]['variation ' ]['allow ' ][0 ]['name ' ][0 ]['value ' ] = $ variation [1 ];
109
109
$ configData ->merge ($ data );
110
110
}
You can’t perform that action at this time.
0 commit comments