20 lines
604 B
PHP
20 lines
604 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('Spec421 does not add Entra-specific tables, models, routes, or Filament resources', function (): void {
|
|
$paths = [
|
|
'apps/platform/database/migrations',
|
|
'apps/platform/app/Models',
|
|
'apps/platform/app/Filament',
|
|
'apps/platform/routes',
|
|
];
|
|
$joined = collect($paths)
|
|
->flatMap(fn (string $path): array => glob(repo_path($path).'/**/*421*') ?: [])
|
|
->map(fn (string $path): string => str_replace(repo_path().DIRECTORY_SEPARATOR, '', $path))
|
|
->values()
|
|
->all();
|
|
|
|
expect($joined)->toBe([]);
|
|
});
|