mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 12:54:04 +00:00
Fix db_name_is_prefixed test
This commit is contained in:
parent
a4ab7ac080
commit
8dae2dcc6f
3 changed files with 9 additions and 3 deletions
|
|
@ -25,8 +25,7 @@ class DatabaseManagerTest extends TestCase
|
|||
/** @test */
|
||||
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.fooconn.driver' => 'sqlite']);
|
||||
app(DatabaseManager::class)->createTenantConnection('foodb', 'fooconn');
|
||||
|
||||
$this->assertSame(config('database.connections.fooconn.database'), database_path('foodb'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue