1
0
mirror of https://github.com/Bubka/2FAuth.git synced 2025-03-07 19:52:38 +01:00
2FAuth/tests/FeatureTestCase.php

29 lines
627 B
PHP

<?php
namespace Tests;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class FeatureTestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Rollback and execute migrations for each test.
*/
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]);
}
}