TenantAtlas/apps/platform/tests/Feature/Models/TenantGraphOptionsKillSwitchTest.php
Ahmed Darrazi 1123b122d9
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 7m13s
feat: cut over tenant core to managed environments
2026-05-07 08:35:42 +02:00

18 lines
488 B
PHP

<?php
use App\Models\ManagedEnvironment;
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
it('throws when ManagedEnvironment::graphOptions is called', function (): void {
$tenant = ManagedEnvironment::factory()->create([
'app_client_id' => 'legacy-client-id',
'app_client_secret' => 'legacy-client-secret',
]);
$call = fn (): array => $tenant->graphOptions();
expect($call)->toThrow(BadMethodCallException::class);
});