mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:14:03 +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
|
||||
{
|
||||
use HasDomains;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -207,4 +207,4 @@ function databaseConnectionSwitchedToDefault()
|
|||
runCommandWorks();
|
||||
|
||||
expect(DB::connection()->getDatabaseName())->toBe($originalDBName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,4 +101,4 @@ test('domains are always lowercase', function () {
|
|||
class DomainTenant extends Models\Tenant
|
||||
{
|
||||
use HasDomains;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@ class TestSeeder extends Seeder
|
|||
'password' => bcrypt('password'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,3 +49,4 @@ test('global cache manager stores data in global cache', function () {
|
|||
tenancy()->initialize($tenant1);
|
||||
expect(cache('def'))->toBe('ghi');
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -560,7 +560,6 @@ test('an event is fired for all touched resources', function () {
|
|||
});
|
||||
});
|
||||
|
||||
// Helpers
|
||||
function migrateTenantsResource()
|
||||
{
|
||||
test()->artisan('tenants:migrate', [
|
||||
|
|
|
|||
|
|
@ -349,4 +349,4 @@ class GlobalResource extends Model
|
|||
{
|
||||
protected $guarded = [];
|
||||
public $timestamps = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,4 +129,4 @@ test('central domain is not a subdomain', function () {
|
|||
class SubdomainTenant extends Models\Tenant
|
||||
{
|
||||
use HasDomains;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'])
|
||||
|
|
|
|||
|
|
@ -175,4 +175,4 @@ class AnotherTenant extends Model implements Contracts\Tenant
|
|||
{
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -262,4 +262,4 @@ class AnotherImpersonationUser extends Authenticable
|
|||
{
|
||||
protected $guarded = [];
|
||||
protected $table = 'users';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue