Automated PR for spec 427 Exchange Teams verified source contract enablement. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #494
22 lines
1.3 KiB
PHP
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([]);
|
|
});
|