X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/895f656897c70190b8e0a4e426a56b9df83a23b2..refs/pull/3349/head:/tests/Settings/SettingsTest.php diff --git a/tests/Settings/SettingsTest.php b/tests/Settings/SettingsTest.php index b55911523..5d8c36996 100644 --- a/tests/Settings/SettingsTest.php +++ b/tests/Settings/SettingsTest.php @@ -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'); + } } \ No newline at end of file