php artisan test is not available after updating to 7.0
Hi,
I updated Laravel to 7.0 and everything works fine, php artisan -V returns Laravel Framework 7.0.4, new Str class works fine but there is no php artisan test command.
Hmm, I'm not sure what do you mean. I updated in composer laravel/framework but how can I update Laravel? I don't have laravel/laravel in my composer.json.
You have to read the upgrade guide and also compare the new and the old Taylor mentions this difference in the upgrade guide.
From doc's
Quote
Miscellaneous
We also encourage you to view the changes in the laravel/laravel GitHub repository. While many of these changes are not required, you may wish to keep these files in sync with your application. Some of these changes will be covered in this upgrade guide, but others, such as changes to configuration files or comments, will not be. You can easily view the changes with the GitHub comparison tool and choose which updates are important to you.
Unquote
If something isn't working after upgrade, you probably missed something in the upgrade guide.
That's why I use a compare tool so I don't miss anything.
Glad you got it, and yes when "manually updating" it's easy to miss stuff. I usually just inatall a new app and migrate code over, but this time I decided to update / upgrade.
Best of Luck and Godspeed in your programming career.
What was needed to run php artisan test. I am running into the same issue. I have ran composer update and manually changed every single file by doing the diff. I am still running into issues
For me the issue was nunomaduro/collision - I didn't have this package in my composer.json. After: composer require nunomaduro/collision:^4.1 a test command appeared.