1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00
This commit is contained in:
Samuel Štancl 2019-08-17 21:57:13 +02:00
parent 4c9bd6ed19
commit 6cee5d36ad

View file

@ -23,10 +23,10 @@ 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']);
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'));
}
}