TenantAtlas/apps/platform/tests/Feature/Guards/FixtureCostProfilesGuardTest.php
2026-04-16 15:57:39 +02:00

28 lines
895 B
PHP

<?php
declare(strict_types=1);
it('keeps the shared tenant helper profile matrix explicit and reviewable', function (): void {
$profiles = createUserWithTenantProfiles();
expect($profiles)->toHaveKeys([
'minimal',
'provider-enabled',
'credential-enabled',
'ui-context',
'heavy',
])
->and($profiles['minimal'])->toMatchArray([
'workspace' => true,
'membership' => true,
'session' => true,
'provider' => false,
'credential' => false,
'cache' => false,
'uiContext' => false,
])
->and($profiles['provider-enabled']['provider'])->toBeTrue()
->and($profiles['credential-enabled']['credential'])->toBeTrue()
->and($profiles['ui-context']['uiContext'])->toBeTrue()
->and($profiles['heavy']['cache'])->toBeTrue();
});