<?php

use App\Support\ManagedEnvironmentLinks;

uses(Illuminate\Foundation\Testing\RefreshDatabase::class);

test('authenticated tenant member can load the managed-environment registry', function () {
    [$user, $tenant] = createUserWithTenant();

    $this->actingAs($user)
        ->get(ManagedEnvironmentLinks::indexUrl($tenant))
        ->assertOk()
        ->assertSee($tenant->name);
});
