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 7
7
8
8
use Magento \FunctionalTestingFramework \Test \Handlers \TestObjectHandler ;
9
9
use Magento \FunctionalTestingFramework \Filter \FilterList ;
10
+ use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
10
11
11
12
/**
12
13
* TestDependencyUtil class that contains helper functions for static and upgrade scripts
@@ -195,18 +196,18 @@ public function mergeDependenciesForExtendingTests(
195
196
return $ testDependencies ;
196
197
}
197
198
198
- /**
199
+ /**
199
200
* @param array $filterList
200
201
* @return array
201
202
*/
202
- public function getFilteredTestNames (array $ filterList )
203
+ public function getFilteredValues (array $ filterList )
203
204
{
204
205
$ 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 );
208
209
}
209
- $ testValues = array_map (function ($ testObjects ) {
210
+ $ testValues = array_map (function ($ testObjects ) {
210
211
return $ testObjects ->getName ();
211
212
}, $ testObjects );
212
213
return $ testValues ;
You can’t perform that action at this time.
0 commit comments