mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 02:04:03 +00:00
wip
This commit is contained in:
parent
4c9bd6ed19
commit
6cee5d36ad
1 changed files with 1 additions and 1 deletions
|
|
@ -23,10 +23,10 @@ class DatabaseManagerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function db_name_is_prefixed_with_db_path_when_sqlite_is_used()
|
public function db_name_is_prefixed_with_db_path_when_sqlite_is_used()
|
||||||
{
|
{
|
||||||
|
// make `tenant` not sqlite so that it has to detect sqlite from fooconn
|
||||||
config(['database.connections.tenant.driver' => 'mysql']);
|
config(['database.connections.tenant.driver' => 'mysql']);
|
||||||
app(DatabaseManager::class)->createTenantConnection('foodb', 'fooconn');
|
app(DatabaseManager::class)->createTenantConnection('foodb', 'fooconn');
|
||||||
|
|
||||||
// make tenant not sqlite so that it has to detect sqlite from fooconn
|
|
||||||
$this->assertSame(config('database.connections.fooconn.database'), database_path('foodb'));
|
$this->assertSame(config('database.connections.fooconn.database'), database_path('foodb'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue