TenantAtlas/tests/Unit/CoverageCapabilitiesResolverTest.php
ahmido 9c56a2349a feat/047-inventory-foundations-nodes (#51)
Adds Inventory Sync toggle include_foundations (default true) + persistence tests
Adds Coverage “Dependencies” column (/—) derived deterministically from graph_contracts (no Graph calls)
Spec/tasks/checklists updated + tasks ticked off

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local>
Reviewed-on: #51
2026-01-10 20:47:29 +00:00

15 lines
580 B
PHP

<?php
use App\Services\Inventory\CoverageCapabilitiesResolver;
it('derives dependency support deterministically from graph contracts', function (string $type, bool $expected) {
$resolver = app(CoverageCapabilitiesResolver::class);
expect($resolver->supportsDependencies($type))->toBe($expected);
})->with([
'settingsCatalogPolicy' => ['settingsCatalogPolicy', true],
'deviceConfiguration' => ['deviceConfiguration', true],
'conditionalAccessPolicy' => ['conditionalAccessPolicy', false],
'roleScopeTag (foundation, MVP)' => ['roleScopeTag', false],
]);