1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:14:03 +00:00
This commit is contained in:
Abrar Ahmad 2022-06-30 17:06:40 +05:00
parent acbdb4bbca
commit d8e298771b
11 changed files with 9 additions and 11 deletions

View file

@ -64,4 +64,4 @@ test('tenant can be identified by domain', function () {
class CombinedTenant extends Models\Tenant
{
use HasDomains;
}
}

View file

@ -207,4 +207,4 @@ function databaseConnectionSwitchedToDefault()
runCommandWorks();
expect(DB::connection()->getDatabaseName())->toBe($originalDBName);
}
}

View file

@ -101,4 +101,4 @@ test('domains are always lowercase', function () {
class DomainTenant extends Models\Tenant
{
use HasDomains;
}
}

View file

@ -20,4 +20,4 @@ class TestSeeder extends Seeder
'password' => bcrypt('password'),
]);
}
}
}

View file

@ -49,3 +49,4 @@ test('global cache manager stores data in global cache', function () {
tenancy()->initialize($tenant1);
expect(cache('def'))->toBe('ghi');
});

View file

@ -560,7 +560,6 @@ test('an event is fired for all touched resources', function () {
});
});
// Helpers
function migrateTenantsResource()
{
test()->artisan('tenants:migrate', [

View file

@ -349,4 +349,4 @@ class GlobalResource extends Model
{
protected $guarded = [];
public $timestamps = false;
}
}

View file

@ -129,4 +129,4 @@ test('central domain is not a subdomain', function () {
class SubdomainTenant extends Models\Tenant
{
use HasDomains;
}
}

View file

@ -96,8 +96,6 @@ test('asset helper tenancy can be disabled', function () {
function getEnvironmentSetUp($app)
{
// parent::getEnvironmentSetUp($app);
$app->booted(function () {
if (file_exists(base_path('routes/tenant.php'))) {
Route::middleware(['web'])

View file

@ -175,4 +175,4 @@ class AnotherTenant extends Model implements Contracts\Tenant
{
$this->$key = $value;
}
}
}

View file

@ -262,4 +262,4 @@ class AnotherImpersonationUser extends Authenticable
{
protected $guarded = [];
protected $table = 'users';
}
}