mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-25 01:34:15 +01:00
25 lines
535 B
PHP
25 lines
535 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
|
|
/**
|
|
* Rollback and execute migrations for each test.
|
|
*/
|
|
use DatabaseTransactions;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
Artisan::call('migrate');
|
|
Artisan::call('passport:install',['--verbose' => 2]);
|
|
}
|
|
}
|