magento / magento/magento2-functional-testing-framework
upgrade:tests references nonexistent class
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 154
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
### Preconditions
1. Be on v4.2.1
### Steps to reproduce
1. Run `vendor/bin/mftf upgrade:tests`
### Expected result
Tests get upgrade
### Actual result
Fatal error:
```
Fatal error: Uncaught Error: Class "Magento\FunctionalTestingFramework\StaticCheck\ActionGroupArgumentsCheck" not found in /Users/lfolco/Sites/myproject/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Upgrade/RemoveUnusedArguments.php:43
Stack trace:
#0 /Users/lfolco/Sites/myproject/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/UpgradeTestsCommand.php(60): Magento\FunctionalTestingFramework\Upgrade\RemoveUnusedArguments->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /Users/lfolco/Sites/myproject/vendor/symfony/console/Command/Command.php(298): Magento\FunctionalTestingFramework\Console\UpgradeTestsCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /Users/lfolco/Sites/myproject/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/lfolco/Sites/myproject/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Magento\FunctionalTestingFramework\Console\UpgradeTestsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Users/lfolco/Sites/myproject/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /Users/lfolco/Sites/myproject/vendor/magento/magento2-functional-testing-framework/bin/mftf(40): Symfony\Component\Console\Application->run()
#6 /Users/lfolco/Sites/myproject/vendor/bin/mftf(117): include('/Users/lfolco/S...')
#7 {main}
thrown in /Users/lfolco/Sites/myproject/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Upgrade/RemoveUnusedArguments.php on line 43
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running `vendor/bin/mftf upgrade:tests` on v4.2.1 and inspect `src/Magento/FunctionalTestingFramework/Upgrade/RemoveUnusedArguments.php` at line 43, following its invocation from `Console/UpgradeTestsCommand.php`. Trace why `ActionGroupArgumentsCheck` cannot be loaded and verify that the upgrade command completes without the fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100