Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel default Unit Tests fail (404) #2463

Closed
bumbummen99 opened this issue Jan 8, 2020 · 1 comment
Closed

Laravel default Unit Tests fail (404) #2463

bumbummen99 opened this issue Jan 8, 2020 · 1 comment

Comments

@bumbummen99
Copy link
Contributor

Info:

  • Docker version ($ docker --version): Docker version 19.03.3, build a872fc2f86
  • Laradock commit ($ git rev-parse HEAD): 63fc1fd
  • System info (Mac, PC, Linux): Ubuntu
  • System info disto/version: 19.10

Issue:

Running the included Tests does result in a failure because $this->get('/') does return 404 instead of 200. This behaviour has been tested with various APP_URL settings ('http://localhost', 'http://127.0.0.1', 'http://nginx').

Running curl http://nginx -o public/curl-test.html from the workspace container as laradock does save a local copy of the response as expected, curl -I http://nginx does also return a 200 OK.


Expected behavior:

It should return 200 as a status code.


Reproduce:

  • Install Laravel & Laradock
  • Enter workspace container (docker-compose exec --user=laradock workspace bash)
  • Run phpunit

Relevant Code:

$response = $this->get('/');
$response->assertStatus(200);
@bumbummen99
Copy link
Contributor Author

Resolved it after upgrading my laradock installation to the latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant