Fix tests for 5.8
This commit is contained in:
@@ -19,7 +19,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
|
||||
protected $app;
|
||||
protected $baseUrl = 'http://localhost';
|
||||
protected $connectionsToTransact = ['testing'];
|
||||
protected $connectionsToTransact = ['test'];
|
||||
|
||||
protected $user;
|
||||
|
||||
@@ -30,13 +30,18 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function setUp()
|
||||
public function setUp() : void
|
||||
{
|
||||
parent::setUp();
|
||||
Artisan::call('database:create', ['--reset' => true]);
|
||||
Artisan::call('migrate:refresh', ['--env' => 'unittest']);
|
||||
}
|
||||
|
||||
public function tearDown() : void
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the application. Required to be implemented
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user