Automated PR for spec 426 exchange teams core evidence identity readiness. Includes service changes and coverage/requirement/spec updates from commit fb4dc20c.
Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #493
27 lines
1.1 KiB
PHP
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([]);
|
|
});
|