1
0
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:
Dan Brown
2022-03-28 11:16:20 +01:00
parent 895f656897
commit 7c12920dc8
2 changed files with 19 additions and 0 deletions

View 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');
}
}