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;
|
|
|
|
|
2019-06-06 13:40:06 +02:00
|
|
|
protected function setUp(): void
|
2019-05-29 11:19:49 +02:00
|
|
|
{
|
|
|
|
parent::setUp();
|
2019-06-06 13:40:06 +02:00
|
|
|
Artisan::call('migrate');
|
2019-05-29 11:19:49 +02:00
|
|
|
Artisan::call('passport:install',['--verbose' => 2]);
|
|
|
|
}
|
2019-05-20 07:37:41 +02:00
|
|
|
}
|