Skip to content

Commit 709aeac

Browse files
authored
ACQE-5843 : Fix issue
1 parent 1ca312a commit 709aeac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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($tests, $filterList ??[]);
256256
$testDependencyFileLocation = self::TEST_DEPENDENCY_FILE_LOCATION_EMBEDDED;
257257
if (isset($_ENV['MAGENTO_BP'])) {
258258
$testDependencyFileLocation = self::TEST_DEPENDENCY_FILE_LOCATION_STANDALONE;
@@ -395,9 +395,9 @@ private function parseConfigParallelOptions($time, $groups)
395395
* @throws TestFrameworkException
396396
* @throws XmlException|FastFailException
397397
*/
398-
private function getTestEntityJson(array $tests = [])
398+
private function getTestEntityJson(array $tests = [], $filterList)
399399
{
400-
$testDependencies = $this->getTestDependencies($tests);
400+
$testDependencies = $this->getTestDependencies($filterList, $tests);
401401
$this->array2Json($testDependencies);
402402
}
403403

@@ -409,7 +409,7 @@ private function getTestEntityJson(array $tests = [])
409409
* @throws TestFrameworkException
410410
* @throws XmlException
411411
*/
412-
public function getTestDependencies(array $tests = []): array
412+
public function getTestDependencies($filterList, array $tests = []): array
413413
{
414414
$this->scriptUtil = new ScriptUtil();
415415
$this->testDependencyUtil = new TestDependencyUtil();
@@ -442,7 +442,7 @@ public function getTestDependencies(array $tests = []): array
442442
}
443443

444444
list($testDependencies, $extendedTestMapping) = $this->findTestDependentModule($testXmlFiles);
445-
return $this->testDependencyUtil->mergeDependenciesForExtendingTests($testDependencies, $extendedTestMapping);
445+
return $this->testDependencyUtil->mergeDependenciesForExtendingTests($testDependencies, $filterList, $extendedTestMapping);
446446
}
447447

448448
/**

0 commit comments

Comments
 (0)