File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/Magento/FunctionalTestingFramework/Util/Script Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 77
88use Magento \FunctionalTestingFramework \Test \Handlers \TestObjectHandler ;
99use Magento \FunctionalTestingFramework \Filter \FilterList ;
10+ use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
1011
1112/**
1213 * TestDependencyUtil class that contains helper functions for static and upgrade scripts
@@ -195,18 +196,18 @@ public function mergeDependenciesForExtendingTests(
195196 return $ testDependencies ;
196197 }
197198
198- /**
199+ /**
199200 * @param array $filterList
200201 * @return array
201202 */
202- public function getFilteredTestNames (array $ filterList )
203+ public function getFilteredValues (array $ filterList )
203204 {
204205 $ testObjects = TestObjectHandler::getInstance ()->getAllObjects ();
205- $ fileList = new FilterList ( $ filterList );
206- foreach ($ fileList -> getFilters () as $ filterData ) {
207- $ filterData ->filter ($ testObjects );
206+ $ filters = MftfApplicationConfig:: getConfig ()-> getFilterList ()-> getFilters ( );
207+ foreach ($ filters as $ filter ) {
208+ $ filter ->filter ($ testObjects );
208209 }
209- $ testValues = array_map (function ($ testObjects ) {
210+ $ testValues = array_map (function ($ testObjects ) {
210211 return $ testObjects ->getName ();
211212 }, $ testObjects );
212213 return $ testValues ;
You can’t perform that action at this time.
0 commit comments