mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +00:00
wip
This commit is contained in:
parent
1578a196c9
commit
fa40abde19
4 changed files with 10 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue