File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
src/Magento/FunctionalTestingFramework/Util/Script Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,8 @@ public function mergeDependenciesForExtendingTests(
175
175
foreach ($ temp_array as $ testDependencyArray ) {
176
176
if ((
177
177
empty ($ filteredTestNames )) ||
178
- (
179
- in_array (
180
- $ testDependencyArray [0 ]["test_name " ],
181
- $ filteredTestNames
182
- )
183
- )
184
- ) {
178
+ isset ($ filteredTestNames [$ testDependencyArray [0 ]["test_name " ]])
179
+ ) {
185
180
$ testDependencies [] = [
186
181
"file_path " => array_column ($ testDependencyArray , 'file_path ' ),
187
182
"full_name " => $ testDependencyArray [0 ]["full_name " ],
@@ -211,9 +206,9 @@ public function getFilteredValues(array $filterList)
211
206
foreach ($ fileList ->getFilters () as $ filterData ) {
212
207
$ filterData ->filter ($ testObjects );
213
208
}
214
- foreach ( $ testObjects as $ testObjects ) {
215
- $ testValues [] = $ testObjects ->getName ();
216
- }
209
+ $ testValues = array_map ( function ( $ testObjects ) {
210
+ return $ testObjects ->getName ();
211
+ }, $ testObjects );
217
212
return $ testValues ;
218
213
}
219
214
}
You can’t perform that action at this time.
0 commit comments