28 lines
895 B
PHP
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();
|
|
}); |