mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-28 09:59:42 +01:00
28 lines
637 B
PHP
28 lines
637 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
abstract class FeatureTestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
|
|
/**
|
|
* Refresh db only when test is using database transaction.
|
|
*/
|
|
use LazilyRefreshDatabase;
|
|
|
|
/**
|
|
* Perform any work that should take place once the database has finished refreshing.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function afterRefreshingDatabase()
|
|
{
|
|
Artisan::call('passport:install', ['--verbose' => 2]);
|
|
}
|
|
}
|