An image saved to the (public) disk is found by the browser & by MacOS (so the storage:link symlink works) , but in test (with php artisan test) I get a NotFoundHttpException.
$response = $this->json('POST', '/api/photos',
[ 'file'=>UploadedFile::fake()->image('img.jpg', 10, 10)->size(1) ]); // 200
$response = $this->get($response['src'];); // 404
I double-checked all the usual suspects, recreated the symlink, but it really seems to be the test server that can't resolve the symlink, where php artisan serve can resolve it. Also creating the symlink in code by Artisan::call('storage:link'); in the testcode does not help.
Any one has a clue why Laravel test (8.1.1) seems to behave differently w.r.t the public/storage symlink?
Update: it's not the symlink, but the public folder that cannot be resolved during test.