Skip to content

Commit 58f0da6

Browse files
committed
MQE-1676: Add a static-check that ensures action groups do not have unused arguments
Documentation + fixed static checks
1 parent 4a4fc38 commit 58f0da6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/commands/mftf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ Runs all MFTF static-checks on the test codebase that MFTF is currently attached
468468
#### Existing static checks
469469

470470
* Test Dependency: Checks that test dependencies do not violate Magento module's composer dependencies.
471+
* Unused Arguments: Checks that action groups do not have unused arguments.
471472

472473
#### Usage
473474

src/Magento/FunctionalTestingFramework/StaticCheck/UnusedArgumentsCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ private function findUnusedArguments($actionGroup)
120120

121121
/**
122122
* Returns array of all action attribute values in an action group.
123-
* @param $actionGroup
124-
* @return array
123+
* @param ActionGroupObject $actionGroup
124+
* @return array $allAttributeValues
125125
*/
126126
private function getAllActionAttributeValues($actionGroup)
127127
{

0 commit comments

Comments
 (0)