TenantAtlas/apps/platform/tests/Unit/Support/TenantConfiguration/Spec426ExchangeTeamsClaimGuardReadinessTest.php
Ahmed Darrazi fb4dc20cb0
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 5m11s
feat: implement Exchange Teams evidence identity readiness
2026-07-03 13:41:08 +02:00

30 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
use App\Services\TenantConfiguration\ClaimGuard;
use App\Support\TenantConfiguration\ClaimState;
it('Spec426 allows only internal operator readiness wording for selected Exchange and Teams compare/render support', function (string $claim): void {
expect(app(ClaimGuard::class)->evaluateStatement($claim, internalOperatorOnly: true))
->toBe(ClaimState::InternalOnly);
})->with([
'Selected Exchange resources are comparable for internal operator review',
'Selected Exchange resources are renderable for internal review',
'Selected Teams resources are comparable for internal operator review',
'Selected Teams resources are renderable for internal review',
]);
it('Spec426 blocks certification, restore, customer, and broad Microsoft 365 readiness claims', function (string $claim): void {
expect(app(ClaimGuard::class)->evaluateStatement($claim, internalOperatorOnly: true))
->toBe(ClaimState::ClaimBlocked);
})->with([
'Selected Exchange resources are certified',
'Selected Teams resources are restore-ready',
'Exchange customer-ready evidence',
'Teams customer-ready evidence',
'Microsoft 365 customer-ready evidence',
'Full Microsoft 365 evidence coverage',
'All Exchange and Teams resources are supported',
]);