Skip to content

Commit 8b59708

Browse files
committed
MQE-1957: Entity Deprecation Reference - Static Check
1 parent 730a3d4 commit 8b59708

File tree

7 files changed

+697
-10
lines changed

7 files changed

+697
-10
lines changed

docs/commands/mftf.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ If no script name argument is specified, all existing static check scripts will
439439
vendor/bin/mftf static-checks [<names>]...
440440
```
441441

442+
#### Options
443+
444+
| Option | Description |
445+
|-----------------------|-----------------------------------------------------------------------------------------------------------|
446+
| `-p, --path` | Path to a MFTF test module to run "deprecatedEntityUsage" static check script. Option is ignored by other static check scripts.
447+
442448
#### Examples
443449

444450
To check what existing static check scripts are available

src/Magento/FunctionalTestingFramework/Console/StaticChecksCommand.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Console\Exception\InvalidArgumentException;
1616
use Symfony\Component\Console\Input\InputArgument;
1717
use Symfony\Component\Console\Input\InputInterface;
18+
use Symfony\Component\Console\Input\InputOption;
1819
use Symfony\Component\Console\Output\OutputInterface;
1920
use Exception;
2021

@@ -52,6 +53,12 @@ protected function configure()
5253
'names',
5354
InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
5455
'name(s) of specific static check script(s) to run'
56+
)->addOption(
57+
'path',
58+
'p',
59+
InputOption::VALUE_OPTIONAL,
60+
'Path to a MFTF test module to run "deprecatedEntityUsage" static check script. ' . PHP_EOL
61+
. 'Option is ignored by other static check scripts.' . PHP_EOL
5562
);
5663
}
5764

@@ -66,7 +73,7 @@ protected function configure()
6673
protected function execute(InputInterface $input, OutputInterface $output)
6774
{
6875
try {
69-
$this->validateInputArguments($input, $output);
76+
$this->validateInputArguments($input);
7077
} catch (InvalidArgumentException $e) {
7178
LoggingUtil::getInstance()->getLogger(StaticChecksCommand::class)->error($e->getMessage());
7279
$output->writeln($e->getMessage() . " Please fix input arguments and rerun.");

0 commit comments

Comments
 (0)