45 lines
2.0 KiB
PHP
45 lines
2.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Services\TenantConfiguration\ClaimGuard;
|
|
use App\Support\TenantConfiguration\ClaimState;
|
|
|
|
it('Spec423 allows only scoped internal Security and Compliance comparable/renderable/readiness wording', function (string $claim): void {
|
|
expect(app(ClaimGuard::class)->evaluateStatement($claim, internalOperatorOnly: true))
|
|
->toBe(ClaimState::InternalOnly);
|
|
})->with([
|
|
'Selected Security and Compliance resources are comparable for internal operator review',
|
|
'Selected Security and Compliance resources are renderable for internal review',
|
|
'Selected Security and Compliance resources are ready for operator review',
|
|
'Selected retention compliance policies are comparable for internal operator review',
|
|
'Selected DLP compliance policies are renderable for internal operator review',
|
|
]);
|
|
|
|
it('Spec423 blocks unsafe Security, Compliance, Purview, legal, restore, customer, and broad claims', function (string $claim): void {
|
|
expect(app(ClaimGuard::class)->evaluateStatement($claim, internalOperatorOnly: true))
|
|
->toBe(ClaimState::ClaimBlocked);
|
|
})->with([
|
|
'Security and Compliance resources are comparable for internal operator review',
|
|
'Security and Compliance resources are renderable for internal review',
|
|
'Selected Security and Compliance resources are comparable',
|
|
'Security and Compliance coverage',
|
|
'Security and Compliance supported',
|
|
'Purview coverage',
|
|
'Full Purview coverage',
|
|
'Complete compliance coverage',
|
|
'Full coverage',
|
|
'Complete coverage',
|
|
'All coverage',
|
|
'All Security and Compliance resources are supported',
|
|
'100 percent Security and Compliance coverage',
|
|
'Security and Compliance certified coverage',
|
|
'Retention is restore-ready',
|
|
'DLP policies are apply-ready',
|
|
'Security and Compliance legal attestation',
|
|
'Regulatory compliance verified',
|
|
'Security and Compliance customer-ready evidence',
|
|
'Security and Compliance Review Pack proof',
|
|
'M365 compliance coverage',
|
|
]);
|