1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 08:24:05 +00:00
This commit is contained in:
Samuel Štancl 2019-02-26 21:22:30 +01:00
parent 1578a196c9
commit fa40abde19
4 changed files with 10 additions and 6 deletions

View file

@ -9,7 +9,7 @@ class CommandsTest extends TestCase
{
public $autoInitTenancy = false;
public function setUp()
public function setUp(): void
{
parent::setUp();
@ -30,6 +30,7 @@ class CommandsTest extends TestCase
/** @test */
public function migrate_command_works_without_options()
{
$this->assertFalse(Schema::hasTable('users'));
Artisan::call('tenants:migrate');
$this->assertFalse(Schema::hasTable('users'));
tenancy()->init();

View file

@ -14,7 +14,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
*
* @return void
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();
@ -48,7 +48,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getEnvironmentSetUp($app)
{
if (file_exists(__DIR__ . '/../.env')) {
(new \Dotenv\Dotenv(__DIR__ . '/..'))->load();
\Dotenv\Dotenv::create(__DIR__ . '/..')->load();
}
$app['config']->set([