25 lines
1.2 KiB
PHP
25 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Collection;
|
|
use Tests\Support\TestLaneManifest;
|
|
|
|
it('routes the initial architecture, deprecation, ops-ux, and action-surface batch into heavy-governance', function (): void {
|
|
$lane = TestLaneManifest::lane('heavy-governance');
|
|
$files = new Collection(TestLaneManifest::discoverFiles('heavy-governance'));
|
|
|
|
expect($lane['includedFamilies'])->toContain('architecture-governance', 'ops-ux')
|
|
->and($lane['selectors']['includeGroups'])->toContain('heavy-governance')
|
|
->and($files)->toContain('tests/Architecture/PlatformVocabularyBoundaryGuardTest.php')
|
|
->and($files)->toContain('tests/Architecture/ReasonTranslationPrimarySurfaceGuardTest.php')
|
|
->and($files)->toContain('tests/Deprecation/IsPlatformSuperadminDeprecationTest.php')
|
|
->and($files)->toContain('tests/Feature/Guards/ActionSurfaceContractTest.php');
|
|
});
|
|
|
|
it('keeps the heavy-governance command group-driven for intentionally expensive families', function (): void {
|
|
$command = TestLaneManifest::buildCommand('heavy-governance');
|
|
|
|
expect($command)->toContain('--group=heavy-governance')
|
|
->and(TestLaneManifest::commandRef('heavy-governance'))->toBe('test:heavy');
|
|
}); |