<?php

declare(strict_types=1);

use App\Models\ManagedEnvironment;

it('does not provide legacy onboarding entry points under /admin/new', function (): void {
    $tenant = ManagedEnvironment::factory()->create();
    [$user] = createUserWithTenant($tenant, role: 'owner');

    $workspace = $tenant->workspace;
    expect($workspace)->not->toBeNull();

    $this->actingAs($user)
        ->get('/admin/new')
        ->assertNotFound();
});
