Level 27
Well, read first, then ask I guess...
As per https://laravel.com/docs/8.x/http-tests#introduction
Laravel provides a very fluent API for making HTTP requests to your application and examining the responses.
Hi.
Following problem I can't get my head around:
...
$this->get('https://laravel.com')->assertOk(); // OK
$this->get('https://laravel.com/img/logotype.min.svg')->assertOk(); // 404
...
I just want to test, that my uploaded images are accessible via their URLs. First I thought I made a mistake when the second line didn't work for my public uploads, but it doesn't work for any image URL on the internet. Even so all URLs I tried are accessible using the browser.
What am I doing wrong?
Cheers
Well, read first, then ask I guess...
As per https://laravel.com/docs/8.x/http-tests#introduction
Laravel provides a very fluent API for making HTTP requests to your application and examining the responses.
Please or to participate in this conversation.