Files
coolify/docs/v5/archive/tests/Feature/V5DisabledModelIsolationTest.php.txt
Andras Bacsai 76030a30d4 chore(v5): archive V5 implementation and remove runtime integration
Move V5 source, migrations, UI, scripts, and tests into documentation, then remove V5 routes, models, jobs, configuration, dependencies, and application hooks.
2026-08-15 19:13:30 +02:00

23 lines
654 B
Plaintext

<?php
use App\Models\Environment;
use App\Models\Project;
use App\Models\Team;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\Support\V5TestSchema;
uses(RefreshDatabase::class);
it('keeps v4 project and environment checks working without the v5 schema', function () {
config()->set('v5.enabled', false);
$team = Team::factory()->create();
$project = Project::factory()->create(['team_id' => $team->id]);
$environment = Environment::factory()->create(['project_id' => $project->id]);
V5TestSchema::dropAllTables();
expect($project->isEmpty())->toBeTrue()
->and($environment->isEmpty())->toBeTrue();
});