novas funcionalidades dos formulario
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-02 11:13:37 +02:00
parent a6afb4e97a
commit 4f35313d06
104 changed files with 7653 additions and 178 deletions
+4 -2
View File
@@ -37,7 +37,8 @@ class SchemaLifecycleTest extends TestCase
// additive upgrades are exercised by their feature/migration tests.
$baselinePaths = array_values(array_filter(glob(database_path('migrations/*.php')),
fn ($path) => strcmp(basename($path), '2026_09_25') < 0));
$this->artisan('migrate:fresh', ['--seed' => true, '--force' => true, '--path' => $baselinePaths, '--realpath' => true])->assertExitCode(0);
// This historical baseline predates several tables required by DatabaseSeeder.
$this->artisan('migrate:fresh', ['--force' => true, '--path' => $baselinePaths, '--realpath' => true])->assertExitCode(0);
$manifest = json_decode(file_get_contents(base_path('docs/investmoz/schema.json')), true, 512, JSON_THROW_ON_ERROR);
$legacy = json_decode(file_get_contents(base_path('docs/investmoz/legacy-schema.json')), true, 512, JSON_THROW_ON_ERROR);
@@ -154,7 +155,8 @@ class SchemaLifecycleTest extends TestCase
$this->assertTrue(Schema::hasTable('users'));
$this->assertTrue(Schema::hasTable('opportunities'));
$this->assertCount(2, DB::select("SELECT extname FROM pg_extension WHERE extname IN ('postgis','pgcrypto')"));
$this->artisan('migrate', ['--seed' => true, '--force' => true, '--path' => $baselinePaths, '--realpath' => true])->assertExitCode(0);
// Reapplying the partial baseline must not invoke seeders for later schemas.
$this->artisan('migrate', ['--force' => true, '--path' => $baselinePaths, '--realpath' => true])->assertExitCode(0);
// This is a separate upgrade batch: ordinary rollback must now revert it.
$this->artisan('migrate:rollback', ['--force' => true])->assertExitCode(0);
$this->assertFalse(Schema::hasTable('projects'));