feat(superadmin): migrate internal docs from docusaurus to guava kb
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-07 09:58:39 +01:00
parent 1d2242fb4d
commit fb45d1f6ab
77 changed files with 3813 additions and 18636 deletions

View File

@@ -74,4 +74,27 @@ class UserRoleAccessTest extends TestCase
$response2 = $this->actingAs($user)->get('/event-admin/dashboard');
$response2->assertStatus(200);
}
public function test_super_admin_can_access_super_admin_docs_panel(): void
{
$user = User::factory()->create(['role' => 'super_admin']);
$response = $this->actingAs($user, 'super_admin')->get('/super-admin/docs');
$response->assertRedirect();
$redirectPath = parse_url((string) $response->headers->get('Location'), PHP_URL_PATH);
$this->assertNotSame('/super-admin/docs/login', $redirectPath);
$this->assertStringStartsWith('/super-admin/docs', (string) $redirectPath);
}
public function test_non_super_admin_cannot_access_super_admin_docs_panel(): void
{
$user = User::factory()->create(['role' => 'tenant_admin']);
$response = $this->actingAs($user, 'super_admin')->get('/super-admin/docs');
$response->assertForbidden();
}
}