Out of the box: FAILURES! Tests: 1, Assertions: 1, Failures: 1.

Posted 5 months ago by behnampmdg3

Hi;

Out of the box following Jeff's tutorial:

phpunit tests/Feature/ExampleTest.php 
PHPUnit 7.4.1 by Sebastian Bergmann and contributors.

F                                                                   1 / 1 (100%)

Time: 161 ms, Memory: 18.00MB

There was 1 failure:

1) Tests\Feature\ExampleTest::testBasicTest
Expected status code 200 but received 404.
Failed asserting that false is true.

/Users/behnamjazayeri/codes/blog/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:133
/Users/bj/codes/blog/tests/Feature/ExampleTest.php:19

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

I changed APP_URL=http://127.0.0.1:8000 but didnt fix it.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.