@@ -252,7 +252,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
252
252
// check test dependencies log command
253
253
if (!empty ($ log )) {
254
254
if ($ log === "testEntityJson " ) {
255
- $ this ->getTestEntityJson ($ tests , $ filterList ??[]);
255
+ $ this ->getTestEntityJson ($ filterList ??[], $ tests );
256
256
$ testDependencyFileLocation = self ::TEST_DEPENDENCY_FILE_LOCATION_EMBEDDED ;
257
257
if (isset ($ _ENV ['MAGENTO_BP ' ])) {
258
258
$ testDependencyFileLocation = self ::TEST_DEPENDENCY_FILE_LOCATION_STANDALONE ;
@@ -395,21 +395,22 @@ private function parseConfigParallelOptions($time, $groups)
395
395
* @throws TestFrameworkException
396
396
* @throws XmlException|FastFailException
397
397
*/
398
- private function getTestEntityJson (array $ tests = [], $ filterList )
398
+ private function getTestEntityJson ($ filterList , array $ tests = [])
399
399
{
400
400
$ testDependencies = $ this ->getTestDependencies ($ filterList , $ tests );
401
401
$ this ->array2Json ($ testDependencies );
402
402
}
403
403
404
404
/**
405
405
* Function responsible for getting test dependencies in array
406
+ * @param array $filterList
406
407
* @param array $tests
407
408
* @return array
408
409
* @throws FastFailException
409
410
* @throws TestFrameworkException
410
411
* @throws XmlException
411
412
*/
412
- public function getTestDependencies ($ filterList , array $ tests = []): array
413
+ public function getTestDependencies (array $ filterList , array $ tests = []): array
413
414
{
414
415
$ this ->scriptUtil = new ScriptUtil ();
415
416
$ this ->testDependencyUtil = new TestDependencyUtil ();
@@ -442,7 +443,11 @@ public function getTestDependencies($filterList, array $tests = []): array
442
443
}
443
444
444
445
list ($ testDependencies , $ extendedTestMapping ) = $ this ->findTestDependentModule ($ testXmlFiles );
445
- return $ this ->testDependencyUtil ->mergeDependenciesForExtendingTests ($ testDependencies , $ filterList , $ extendedTestMapping );
446
+ return $ this ->testDependencyUtil ->mergeDependenciesForExtendingTests (
447
+ $ testDependencies ,
448
+ $ filterList ,
449
+ $ extendedTestMapping
450
+ );
446
451
}
447
452
448
453
/**
0 commit comments