Skip to content

Commit

Permalink
Run back on, to avoid conflict with further tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 24, 2023
1 parent 6b4add3 commit 5467e21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/tests/PastriesControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function testMigrations(): void
// Migration down table migration, and make sure table doesn't exist anymore.
$this->ci->get(PastriesTable::class)->down();
$this->assertFalse($builder->hasTable('pastries'));

// Run back on, to avoid conflict with further tests
$this->ci->get(PastriesTable::class)->up();
$this->ci->get(DefaultPastries::class)->up();
$this->ci->get(PastriesPermissions::class)->up();
}

/**
Expand Down

0 comments on commit 5467e21

Please sign in to comment.