Fix tests for 5.8

This commit is contained in:
Nabeel Shahzad
2019-05-12 10:50:38 -05:00
parent 7f0fb16dc3
commit 87aa6ed1da
13 changed files with 19 additions and 22 deletions

View File

@@ -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
*