@@ -252,7 +252,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
252252 // check test dependencies log command
253253 if (!empty ($ log )) {
254254 if ($ log === "testEntityJson " ) {
255- $ this ->getTestEntityJson ($ tests );
255+ $ this ->getTestEntityJson ($ filterList ??[], $ tests );
256256 $ testDependencyFileLocation = self ::TEST_DEPENDENCY_FILE_LOCATION_EMBEDDED ;
257257 if (isset ($ _ENV ['MAGENTO_BP ' ])) {
258258 $ testDependencyFileLocation = self ::TEST_DEPENDENCY_FILE_LOCATION_STANDALONE ;
@@ -395,21 +395,22 @@ private function parseConfigParallelOptions($time, $groups)
395395 * @throws TestFrameworkException
396396 * @throws XmlException|FastFailException
397397 */
398- private function getTestEntityJson (array $ tests = [])
398+ private function getTestEntityJson (array $ filterList , array $ tests = [])
399399 {
400- $ testDependencies = $ this ->getTestDependencies ($ tests );
400+ $ testDependencies = $ this ->getTestDependencies ($ filterList , $ tests );
401401 $ this ->array2Json ($ testDependencies );
402402 }
403403
404404 /**
405405 * Function responsible for getting test dependencies in array
406+ * @param array $filterList
406407 * @param array $tests
407408 * @return array
408409 * @throws FastFailException
409410 * @throws TestFrameworkException
410411 * @throws XmlException
411412 */
412- public function getTestDependencies (array $ tests = []): array
413+ public function getTestDependencies (array $ filterList , array $ tests = []): array
413414 {
414415 $ this ->scriptUtil = new ScriptUtil ();
415416 $ this ->testDependencyUtil = new TestDependencyUtil ();
@@ -442,7 +443,11 @@ public function getTestDependencies(array $tests = []): array
442443 }
443444
444445 list ($ testDependencies , $ extendedTestMapping ) = $ this ->findTestDependentModule ($ testXmlFiles );
445- return $ this ->testDependencyUtil ->mergeDependenciesForExtendingTests ($ testDependencies , $ extendedTestMapping );
446+ return $ this ->testDependencyUtil ->mergeDependenciesForExtendingTests (
447+ $ testDependencies ,
448+ $ filterList ,
449+ $ extendedTestMapping
450+ );
446451 }
447452
448453 /**
0 commit comments