@@ -62,8 +62,6 @@ public function testGetModulePathsAggregate()
62
62
$ this ->setMockResolverProperties ($ resolver , null , [0 => "Magento_example " ]);
63
63
$ this ->assertEquals (
64
64
[
65
- "example " . DIRECTORY_SEPARATOR . "paths " ,
66
- "example " . DIRECTORY_SEPARATOR . "paths " ,
67
65
"example " . DIRECTORY_SEPARATOR . "paths "
68
66
],
69
67
$ resolver ->getModulesPath ()
@@ -88,35 +86,28 @@ public function testGetModulePathsLocations()
88
86
$ this ->setMockResolverProperties ($ resolver , null , null );
89
87
$ this ->assertEquals (
90
88
[
91
- "example " . DIRECTORY_SEPARATOR . "paths " ,
92
- "example " . DIRECTORY_SEPARATOR . "paths " ,
93
89
"example " . DIRECTORY_SEPARATOR . "paths "
94
90
],
95
91
$ resolver ->getModulesPath ()
96
92
);
97
93
98
94
// Define the Module paths from app/code
99
- $ appCodePath = MAGENTO_BP
100
- . DIRECTORY_SEPARATOR
101
- . 'app ' . DIRECTORY_SEPARATOR
102
- . 'code ' . DIRECTORY_SEPARATOR ;
95
+ $ magentoBaseCodePath = MAGENTO_BP ;
103
96
104
97
// Define the Module paths from default TESTS_MODULE_PATH
105
98
$ modulePath = defined ('TESTS_MODULE_PATH ' ) ? TESTS_MODULE_PATH : TESTS_BP ;
106
99
107
100
// Define the Module paths from vendor modules
108
- $ vendorCodePath = PROJECT_ROOT
109
- . DIRECTORY_SEPARATOR
110
- . 'vendor ' . DIRECTORY_SEPARATOR ;
101
+ $ projectRootCodePath = PROJECT_ROOT ;
111
102
112
103
$ mockResolver ->verifyInvoked ('globRelevantPaths ' , [$ modulePath , '' ]);
113
104
$ mockResolver ->verifyInvoked (
114
105
'globRelevantPaths ' ,
115
- [$ appCodePath , DIRECTORY_SEPARATOR . 'Test ' . DIRECTORY_SEPARATOR .'Mftf ' ]
106
+ [$ magentoBaseCodePath , 'Test ' . DIRECTORY_SEPARATOR .'Mftf ' ]
116
107
);
117
108
$ mockResolver ->verifyInvoked (
118
109
'globRelevantPaths ' ,
119
- [$ vendorCodePath , DIRECTORY_SEPARATOR . 'Test ' . DIRECTORY_SEPARATOR .'Mftf ' ]
110
+ [$ projectRootCodePath , 'Test ' . DIRECTORY_SEPARATOR .'Mftf ' ]
120
111
);
121
112
}
122
113
@@ -151,8 +142,6 @@ public function testGetModulePathsBlacklist()
151
142
function ($ arg1 , $ arg2 ) {
152
143
if ($ arg2 === "" ) {
153
144
$ mockValue = ["somePath " => "somePath " ];
154
- } elseif (strpos ($ arg1 , "app " )) {
155
- $ mockValue = ["otherPath " => "otherPath " ];
156
145
} else {
157
146
$ mockValue = ["lastPath " => "lastPath " ];
158
147
}
@@ -161,7 +150,7 @@ function ($arg1, $arg2) {
161
150
);
162
151
$ resolver = ModuleResolver::getInstance ();
163
152
$ this ->setMockResolverProperties ($ resolver , null , null , ["somePath " ]);
164
- $ this ->assertEquals (["otherPath " , " lastPath " ], $ resolver ->getModulesPath ());
153
+ $ this ->assertEquals (["lastPath " ], $ resolver ->getModulesPath ());
165
154
TestLoggingUtil::getInstance ()->validateMockLogStatement (
166
155
'info ' ,
167
156
'excluding module ' ,
0 commit comments