@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user