]> BookStack Code Mirror - bookstack/blobdiff - tests/Settings/SettingsTest.php
Added 404 response for non-existing setting categories
[bookstack] / tests / Settings / SettingsTest.php
index b55911523666dce8890bfc840c18109e572af4a8..5d8c36996c7fd0c09eeced990c6e5b803a74952e 100644 (file)
@@ -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