-
Runs fine obviously, but if I try the following with an image, that works via browser/curl/postman:
My test always fails because 404 is returned instead of 200. Am I doing anything wrong or is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Laravel feature tests can only send request to Laravel routes, when you try to access an actual file it would failed. In general if you need to use these type of tests you should be using Laravel Dusk where artisan serve is running under the hood + Chrome. |
Beta Was this translation helpful? Give feedback.
Laravel feature tests can only send request to Laravel routes, when you try to access an actual file it would failed. In general if you need to use these type of tests you should be using Laravel Dusk where artisan serve is running under the hood + Chrome.