Closed amite closed 8 years ago
The error is shown at 9:03
on https://course.testdrivenlaravel.com/lessons/module-1/getting-to-green
There was no need to use homestead merely for the test, because earlier in the setup (at 3:55
) the database was set to in-memory sqlite (see the phpunit.xml edits).
Not to mention you're not going to get a status code of 500 (internal server error) if the server is not running.
Laravel must use built-in php web server, you don't need to install homestead or able to visit http://localhost/concerts/1 in a browser. But who actually runs the server during testing? I believe phpunit does it for the time of test execution.
Yes. You guys are all right. I tried it out and it worked without the server
When I reached the view layer, I started getting this error:
That's because the server wasn't running. I had to setup ticketbeast on homestead and then got the test moving ahead.