mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 05:54:05 +00:00
newline
This commit is contained in:
parent
acbdb4bbca
commit
d8e298771b
11 changed files with 9 additions and 11 deletions
|
|
@ -64,4 +64,4 @@ test('tenant can be identified by domain', function () {
|
||||||
class CombinedTenant extends Models\Tenant
|
class CombinedTenant extends Models\Tenant
|
||||||
{
|
{
|
||||||
use HasDomains;
|
use HasDomains;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,4 +207,4 @@ function databaseConnectionSwitchedToDefault()
|
||||||
runCommandWorks();
|
runCommandWorks();
|
||||||
|
|
||||||
expect(DB::connection()->getDatabaseName())->toBe($originalDBName);
|
expect(DB::connection()->getDatabaseName())->toBe($originalDBName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,4 +101,4 @@ test('domains are always lowercase', function () {
|
||||||
class DomainTenant extends Models\Tenant
|
class DomainTenant extends Models\Tenant
|
||||||
{
|
{
|
||||||
use HasDomains;
|
use HasDomains;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@ class TestSeeder extends Seeder
|
||||||
'password' => bcrypt('password'),
|
'password' => bcrypt('password'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,3 +49,4 @@ test('global cache manager stores data in global cache', function () {
|
||||||
tenancy()->initialize($tenant1);
|
tenancy()->initialize($tenant1);
|
||||||
expect(cache('def'))->toBe('ghi');
|
expect(cache('def'))->toBe('ghi');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -560,7 +560,6 @@ test('an event is fired for all touched resources', function () {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Helpers
|
|
||||||
function migrateTenantsResource()
|
function migrateTenantsResource()
|
||||||
{
|
{
|
||||||
test()->artisan('tenants:migrate', [
|
test()->artisan('tenants:migrate', [
|
||||||
|
|
|
||||||
|
|
@ -349,4 +349,4 @@ class GlobalResource extends Model
|
||||||
{
|
{
|
||||||
protected $guarded = [];
|
protected $guarded = [];
|
||||||
public $timestamps = false;
|
public $timestamps = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,4 +129,4 @@ test('central domain is not a subdomain', function () {
|
||||||
class SubdomainTenant extends Models\Tenant
|
class SubdomainTenant extends Models\Tenant
|
||||||
{
|
{
|
||||||
use HasDomains;
|
use HasDomains;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,6 @@ test('asset helper tenancy can be disabled', function () {
|
||||||
|
|
||||||
function getEnvironmentSetUp($app)
|
function getEnvironmentSetUp($app)
|
||||||
{
|
{
|
||||||
// parent::getEnvironmentSetUp($app);
|
|
||||||
|
|
||||||
$app->booted(function () {
|
$app->booted(function () {
|
||||||
if (file_exists(base_path('routes/tenant.php'))) {
|
if (file_exists(base_path('routes/tenant.php'))) {
|
||||||
Route::middleware(['web'])
|
Route::middleware(['web'])
|
||||||
|
|
|
||||||
|
|
@ -175,4 +175,4 @@ class AnotherTenant extends Model implements Contracts\Tenant
|
||||||
{
|
{
|
||||||
$this->$key = $value;
|
$this->$key = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -262,4 +262,4 @@ class AnotherImpersonationUser extends Authenticable
|
||||||
{
|
{
|
||||||
protected $guarded = [];
|
protected $guarded = [];
|
||||||
protected $table = 'users';
|
protected $table = 'users';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue