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(
175175 foreach ($ temp_array as $ testDependencyArray ) {
176176 if ((
177177 empty ($ filteredTestNames )) ||
178- (
179- in_array (
180- $ testDependencyArray [0 ]["test_name " ],
181- $ filteredTestNames
182- )
183- )
184- ) {
178+ isset ($ filteredTestNames [$ testDependencyArray [0 ]["test_name " ]])
179+ ) {
185180 $ testDependencies [] = [
186181 "file_path " => array_column ($ testDependencyArray , 'file_path ' ),
187182 "full_name " => $ testDependencyArray [0 ]["full_name " ],
@@ -211,9 +206,9 @@ public function getFilteredValues(array $filterList)
211206 foreach ($ fileList ->getFilters () as $ filterData ) {
212207 $ filterData ->filter ($ testObjects );
213208 }
214- foreach ( $ testObjects as $ testObjects ) {
215- $ testValues [] = $ testObjects ->getName ();
216- }
209+ $ testValues = array_map ( function ( $ testObjects ) {
210+ return $ testObjects ->getName ();
211+ }, $ testObjects );
217212 return $ testValues ;
218213 }
219214}
You can’t perform that action at this time.
0 commit comments