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

Posted 4 weeks 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.