PATH:
home
/
lab2454c
/
bancmils.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Testing
<?php namespace Illuminate\Foundation\Testing; use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands; trait DatabaseMigrations { use CanConfigureMigrationCommands; /** * Define hooks to migrate the database before and after each test. * * @return void */ public function runDatabaseMigrations() { $this->artisan('migrate:fresh', $this->migrateFreshUsing()); $this->app[Kernel::class]->setArtisan(null); $this->beforeApplicationDestroyed(function () { $this->artisan('migrate:rollback'); RefreshDatabaseState::$migrated = false; }); } }
[-] LazilyRefreshDatabase.php
[edit]
[-] TestCase.php
[edit]
[+]
..
[-] DatabaseTransactions.php
[edit]
[-] RefreshDatabaseState.php
[edit]
[-] WithoutMiddleware.php
[edit]
[-] WithFaker.php
[edit]
[-] .htaccess
[edit]
[-] RefreshDatabase.php
[edit]
[-] WithoutEvents.php
[edit]
[-] DatabaseMigrations.php
[edit]
[+]
Traits
[+]
Concerns
[-] Wormhole.php
[edit]