mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Updated not-found image path handling to have better ux
Added test to cover. Started refactoring some of the app error handling in the process of this. Fixes #2696
This commit is contained in:
@ -38,4 +38,11 @@ class ErrorTest extends TestCase
|
||||
|
||||
$this->assertCount(1, $handler->getRecords());
|
||||
}
|
||||
|
||||
public function test_access_to_non_existing_image_location_provides_404_response()
|
||||
{
|
||||
$resp = $this->actingAs($this->getViewer())->get('/uploads/images/gallery/2021-05/anonexistingimage.png');
|
||||
$resp->assertStatus(404);
|
||||
$resp->assertSeeText('Image Not Found');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user