TenantAtlas/apps/platform/tests/Feature/TenantConfiguration/Spec427ExchangeTeamsNoMiniPlatformTest.php
Ahmed Darrazi 6f5d1827b6
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m36s
feat: implement spec 427 source contract enablement
2026-07-03 16:57:06 +02:00

22 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Facades\File;
it('Spec427 does not introduce Exchange or Teams mini-platform services routes migrations reports or adapters', function (): void {
expect(File::exists(app_path('Services/TenantConfiguration/Exchange')))->toBeFalse()
->and(File::exists(app_path('Services/TenantConfiguration/Teams')))->toBeFalse()
->and(File::exists(app_path('Services/Providers/ExchangeProviderAdapter.php')))->toBeFalse()
->and(File::exists(app_path('Services/Providers/TeamsProviderAdapter.php')))->toBeFalse()
->and(File::exists(app_path('Services/Providers/GraphV1Adapter.php')))->toBeFalse()
->and(File::exists(app_path('Models/TenantConfigurationExchangeResource.php')))->toBeFalse()
->and(File::exists(app_path('Models/TenantConfigurationTeamsResource.php')))->toBeFalse()
->and(glob(database_path('migrations/*exchange*')) ?: [])->toBe([])
->and(glob(database_path('migrations/*teams*')) ?: [])->toBe([])
->and(glob(base_path('routes/*exchange*')) ?: [])->toBe([])
->and(glob(base_path('routes/*teams*')) ?: [])->toBe([])
->and(glob(resource_path('views/**/*exchange*')) ?: [])->toBe([])
->and(glob(resource_path('views/**/*teams*')) ?: [])->toBe([]);
});