TenantAtlas/apps/platform/tests/Feature/TenantConfiguration/Spec426ExchangeTeamsNoMiniPlatformTest.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

27 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Facades\File;
it('Spec426 does not introduce Exchange or Teams mini-platform services, routes, migrations, or adapters', function (): void {
$runtimeFiles = collect(File::allFiles(app_path()))
->filter(fn (SplFileInfo $file): bool => str_ends_with($file->getFilename(), '.php'))
->map(fn (SplFileInfo $file): string => file_get_contents($file->getPathname()) ?: '')
->implode("\n");
expect($runtimeFiles)
->not->toContain('namespace App\\Services\\TenantConfiguration\\Exchange')
->not->toContain('namespace App\\Services\\TenantConfiguration\\Teams')
->not->toContain('ExchangeProviderAdapter')
->not->toContain('TeamsProviderAdapter')
->not->toContain('GraphV1Adapter')
->not->toContain('ProviderV1')
->not->toContain('dual_write')
->not->toContain('tenant_configuration_exchange')
->not->toContain('tenant_configuration_teams');
expect(glob(database_path('migrations/*exchange*')) ?: [])->toBe([])
->and(glob(database_path('migrations/*teams*')) ?: [])->toBe([]);
});