Skip to content

Commit 37d16cc

Browse files
committed
MQE-2047: Static Check Options
- CR Fixes
1 parent 7b3aca1 commit 37d16cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Magento/FunctionalTestingFramework/Console/StaticChecksCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ private function validateTestNames($requiredChecksNames)
191191
*/
192192
private function parseRulesetJson()
193193
{
194-
$pathToRuleset = TESTS_BP . DIRECTORY_SEPARATOR . "staticRuleset.json";
194+
$pathAddition = "/dev/tests/acceptance/";
195+
// MFTF is both NOT attached and no MAGENTO_BP defined in .env
196+
if (MAGENTO_BP === FW_BP) {
197+
$pathAddition = "/dev/";
198+
}
199+
$pathToRuleset = MAGENTO_BP . $pathAddition . "staticRuleset.json";
195200
if (!file_exists($pathToRuleset)) {
196201
$this->ioStyle->text("No ruleset under $pathToRuleset" . PHP_EOL);
197202
return;

0 commit comments

Comments
 (0)