1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Testing: Split out role tests to management and permissions

This commit is contained in:
Dan Brown
2023-07-04 21:40:05 +01:00
parent 465989efa9
commit 1a56de6cb4
3 changed files with 271 additions and 261 deletions

View File

@@ -6,6 +6,11 @@ use Tests\TestCase;
class SettingsTest extends TestCase
{
public function test_admin_can_see_settings()
{
$this->asAdmin()->get('/settings/features')->assertSee('Settings');
}
public function test_settings_endpoint_redirects_to_settings_view()
{
$resp = $this->asAdmin()->get('/settings');