From 7db66658175f7de852a86979ff83b3a36bc6dada Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Thu, 27 Oct 2022 21:46:14 -0400 Subject: [PATCH] Make sure migrations aren't rolled back --- tests/Traits/DatabaseMigrations.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Traits/DatabaseMigrations.php b/tests/Traits/DatabaseMigrations.php index c0e6c3eaf..ac4f4730b 100644 --- a/tests/Traits/DatabaseMigrations.php +++ b/tests/Traits/DatabaseMigrations.php @@ -4,16 +4,19 @@ namespace Pterodactyl\Tests\Traits; use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands; +use Illuminate\Foundation\Testing\DatabaseMigrations as DM; trait DatabaseMigrations { use CanConfigureMigrationCommands; + use DM; /** * Define hooks to migrate the database before and after each test. * + * @return void */ - public function runDatabaseMigrations(): void + public function runDatabaseMigrations() { $this->artisan('migrate:fresh', $this->migrateFreshUsing());