'MPBA Limited', 'slug' => 'mpba-limited', 'is_system_company' => true, 'status' => 'active', ]); $user = User::factory()->create([ 'company_id' => $company->id, 'email' => 'mark.gregory@mpba.co.uk', 'is_platform_admin' => true, 'is_company_admin' => true, ]); $this->actingAs($user) ->get('/admin') ->assertOk() ->assertSee('Platform', false); } public function test_non_system_company_requires_license(): void { $company = Company::create([ 'name' => 'Customer Limited', 'slug' => 'customer-limited', 'status' => 'active', ]); $user = User::factory()->create(['company_id' => $company->id]); $this->actingAs($user) ->get('/dashboard') ->assertStatus(402); } }