Make sure migrations aren't rolled back

This commit is contained in:
Lance Pioch 2022-10-27 21:46:14 -04:00
parent 553c4f6b09
commit 7db6665817

View file

@ -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());