2FAuth/tests/TestCase.php

25 lines
552 B
PHP
Raw Normal View History

2019-05-20 07:37:41 +02:00
<?php
namespace Tests;
2019-05-29 11:19:49 +02:00
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Testing\DatabaseTransactions;
2019-05-20 07:37:41 +02:00
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
2019-05-29 11:19:49 +02:00
/**
* Rollback and execute migrations for each test.
*/
use DatabaseTransactions;
public function setUp(): void
{
parent::setUp();
Artisan::call('migrate', ['--seed' => true]);
Artisan::call('passport:install',['--verbose' => 2]);
}
2019-05-20 07:37:41 +02:00
}