@chiefguru what you get once you run vendor/bin/phpunit in the terminal?
Default Feature Test fails with 404 error
I have a clean L8 installation running under MAMP 6.0 on a Mac and I'm using PHPStorm as IDE.
When I try and run the test tests/Feature/ExampleTest.php from within Storm, the assertion fails with a 404 error. It also fails when run from artisan, so my Storm config isn't the issue.
My APP_URL is set correctly to run the app APP_URL=http://localhost:8888/Laravel8/simple-site/public/ in the browser. If I simplify the URL to http://localhost:8888/ the test works.
I'm tearing what little hair I have out over this, what basic, simple, in your face configuration have I overlooked.
Testing started at 10:20 am ... /Applications/MAMP/bin/php/php7.4.9/bin/php /Users/brett/Working/WebHome/Laravel8/simple-site/vendor/phpunit/phpunit/phpunit --configuration /Users/brett/Working/WebHome/Laravel8/simple-site/phpunit.xml /Users/brett/Working/WebHome/Laravel8/simple-site/tests/Feature --teamcity PHPUnit 9.4.2 by Sebastian Bergmann and contributors.
Expected status code 200 but received 404. Failed asserting that 200 is identical to 404. /Users/brett/Working/WebHome/Laravel8/simple-site/vendor/laravel/framework/src/Illuminate/Testing/TestResponse.php:186 /Users/brett/Working/WebHome/Laravel8/simple-site/tests/Feature/ExampleTest.php:19
Please or to participate in this conversation.