From 5467e210fb8134b6a77699f5c6b84e872e3d45d9 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Sat, 23 Sep 2023 21:40:26 -0400 Subject: [PATCH] Run back on, to avoid conflict with further tests --- app/tests/PastriesControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/tests/PastriesControllerTest.php b/app/tests/PastriesControllerTest.php index 68859f1..2e0406c 100644 --- a/app/tests/PastriesControllerTest.php +++ b/app/tests/PastriesControllerTest.php @@ -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(); } /**