2FAuth/tests/FeatureTestCase.php

28 lines
627 B
PHP
Raw Normal View History

2021-11-14 01:52:46 +01:00
<?php
namespace Tests;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
2021-11-14 01:52:46 +01:00
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
2022-11-22 15:15:52 +01:00
use Illuminate\Support\Facades\Artisan;
2021-11-14 01:52:46 +01:00
abstract class FeatureTestCase extends BaseTestCase
{
use CreatesApplication;
/**
2021-11-14 01:52:46 +01:00
* Rollback and execute migrations for each test.
*/
use LazilyRefreshDatabase;
2021-11-14 01:52:46 +01:00
/**
* Perform any work that should take place once the database has finished refreshing.
*
* @return void
*/
protected function afterRefreshingDatabase()
2021-11-14 01:52:46 +01:00
{
2022-11-22 15:15:52 +01:00
Artisan::call('passport:install', ['--verbose' => 2]);
2021-11-14 01:52:46 +01:00
}
}