Make sure migrations aren't rolled back
This commit is contained in:
parent
553c4f6b09
commit
7db6665817
1 changed files with 4 additions and 1 deletions
|
@ -4,16 +4,19 @@ namespace Pterodactyl\Tests\Traits;
|
||||||
|
|
||||||
use Illuminate\Contracts\Console\Kernel;
|
use Illuminate\Contracts\Console\Kernel;
|
||||||
use Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands;
|
use Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands;
|
||||||
|
use Illuminate\Foundation\Testing\DatabaseMigrations as DM;
|
||||||
|
|
||||||
trait DatabaseMigrations
|
trait DatabaseMigrations
|
||||||
{
|
{
|
||||||
use CanConfigureMigrationCommands;
|
use CanConfigureMigrationCommands;
|
||||||
|
use DM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define hooks to migrate the database before and after each test.
|
* 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());
|
$this->artisan('migrate:fresh', $this->migrateFreshUsing());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue