2FAuth/tests/FeatureTestCase.php

25 lines
542 B
PHP
Raw Normal View History

2021-11-14 01:52:46 +01:00
<?php
namespace Tests;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class FeatureTestCase 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]);
}
}