mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
Added 404 response for non-existing setting categories
- Added test to cover.
This commit is contained in:
@@ -28,4 +28,12 @@ class SettingsTest extends TestCase
|
||||
$resp->assertElementExists("form[action$=\"/settings/{$category}\"]");
|
||||
}
|
||||
}
|
||||
|
||||
public function test_not_found_setting_category_throws_404()
|
||||
{
|
||||
$resp = $this->asAdmin()->get('/settings/biscuits');
|
||||
|
||||
$resp->assertStatus(404);
|
||||
$resp->assertSee('Page Not Found');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user