18 lines
480 B
PHP
18 lines
480 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\Tenant;
|
|
|
|
it('redirects /admin/new to the canonical managed-tenant onboarding page', function (): void {
|
|
$tenant = Tenant::factory()->create();
|
|
[$user] = createUserWithTenant($tenant, role: 'owner');
|
|
|
|
$workspace = $tenant->workspace;
|
|
expect($workspace)->not->toBeNull();
|
|
|
|
$this->actingAs($user)
|
|
->get('/admin/new')
|
|
->assertRedirect('/admin/w/'.$workspace->slug.'/managed-tenants/onboarding');
|
|
});
|