commit 30/9
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-30 09:05:43 +02:00
parent 67dad461d9
commit 3dc7c5c649
75 changed files with 4123 additions and 107 deletions
+7
View File
@@ -63,6 +63,10 @@ class InvestmentZoneTest extends TestCase
public function test_rollback_refuses_populated_foundation_and_empty_rollback_is_reversible(): void
{
$skillsMigrations = glob(database_path('migrations/2026_09_30_*_skills_education_*.php'));
foreach (array_reverse($skillsMigrations) as $file) {
(require $file)->down();
}
$migration = require database_path('migrations/2026_09_28_100000_investment_zone_foundation.php');
$originMigration = require database_path('migrations/2026_09_28_120000_investment_submission_zones.php');
$geometryMigration = require database_path('migrations/2026_09_28_110000_zone_geometry_review.php');
@@ -78,6 +82,9 @@ class InvestmentZoneTest extends TestCase
$originMigration->up();
$businessMigration->up();
$intakeMigration->up();
foreach ($skillsMigrations as $file) {
(require $file)->up();
}
$this->assertTrue(Schema::hasTable('investment_zone_links'));
$this->actingAs($this->manager())->postJson('/api/v2/investment/admin/zones', ['code' => 'QA', 'name' => 'Synthetic', 'category' => 'pending'])->assertCreated();
try {