PHPUnit issues on example Feature Test

Posted 3 months ago by hippo
    /** @test */
    public function anyone_can_see_our_home_page()
        $response = $this->get('/');

//gives me

There was 1 failure:

1) Tests\Feature\ServicesTest::anyone_can_see_our_home_page
Expected status code 200 but received 500.
Failed asserting that false is true.

I've obviously got a homepage. I don't know why this example test is not passing. I can view it in the browser with zero errors. Can I please get some help with where to go from here? I feel like these tests should be making this process easier, however I see literally no benefit yet. My php_errors.log has nothing new in it. I've used

php artisan cache:clear
composer dump-autoload

in hopes it'd help, but still nothing..

Thanks in advance for any pointers!

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

Reply to

Use Markdown with GitHub-flavored code blocks.