File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
dev/tests/unit/Magento/FunctionalTestFramework/Util
src/Magento/FunctionalTestingFramework/Util Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ class ModulePathExtractorTest extends MagentoTestCase
18
18
* @var array
19
19
*/
20
20
private $ mockTestModulePaths = [
21
- 'Magento_ModuleA ' => [ '/base/path/app/code/Magento/ModuleA/Test/Mftf ' ] ,
22
- 'VendorB_ModuleB ' => [ '/base/path/app/code/VendorB/ModuleB/Test/Mftf ' ] ,
23
- 'Magento_ModuleC ' => [ '/base/path/dev/tests/acceptance/tests/functional/Magento/ModuleCTest ' ] ,
24
- 'VendorD_ModuleD ' => [ '/base/path/dev/tests/acceptance/tests/functional/VendorD/ModuleDTest ' ] ,
25
- 'SomeModuleE ' => [ '/base/path/dev/tests/acceptance/tests/functional/FunctionalTest/SomeModuleE ' ] ,
26
- 'Magento_ModuleF ' => [ '/base/path/vendor/magento/module-modulef/Test/Mftf ' ] ,
27
- 'VendorG_ModuleG ' => [ '/base/path/vendor/vendorg/module-moduleg-test ' ] ,
21
+ 'Magento_ModuleA ' => '/base/path/app/code/Magento/ModuleA/Test/Mftf ' ,
22
+ 'VendorB_ModuleB ' => '/base/path/app/code/VendorB/ModuleB/Test/Mftf ' ,
23
+ 'Magento_ModuleC ' => '/base/path/dev/tests/acceptance/tests/functional/Magento/ModuleCTest ' ,
24
+ 'VendorD_ModuleD ' => '/base/path/dev/tests/acceptance/tests/functional/VendorD/ModuleDTest ' ,
25
+ 'SomeModuleE ' => '/base/path/dev/tests/acceptance/tests/functional/FunctionalTest/SomeModuleE ' ,
26
+ 'Magento_ModuleF ' => '/base/path/vendor/magento/module-modulef/Test/Mftf ' ,
27
+ 'VendorG_ModuleG ' => '/base/path/vendor/vendorg/module-moduleg-test ' ,
28
28
];
29
29
30
30
/**
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ private function extractKeyByPath($path)
91
91
}
92
92
$ paths = array_slice ($ paths , 0 , count ($ paths )-2 );
93
93
$ shortenedPath = implode (DIRECTORY_SEPARATOR , $ paths );
94
- foreach ($ this ->testModulePaths as $ key => $ pathArr ) {
95
- if (isset ( $ pathArr [ 0 ]) && $ pathArr [ 0 ] == $ shortenedPath ) {
94
+ foreach ($ this ->testModulePaths as $ key => $ keyValue ) {
95
+ if ( $ keyValue == $ shortenedPath ) {
96
96
return $ key ;
97
97
}
98
98
}
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ private function flipAndFilterArray($objectArray, $filterArray = null)
301
301
|| (is_array ($ filterArray ) && in_array ($ modules [0 ], $ filterArray ))
302
302
|| isset ($ this ->knownDirectories [$ modules [0 ]])) {
303
303
if (strpos ($ modules [0 ], '_ ' ) === false ) {
304
- $ modules [0 ] = $ this ->getPossibleVendorName ($ path );
304
+ $ modules [0 ] = $ this ->getPossibleVendorName ($ path ) . ' _ ' . $ modules [ 0 ] ;
305
305
}
306
306
$ flippedArray [$ modules [0 ]] = $ path ;
307
307
}
You can’t perform that action at this time.
0 commit comments