From 3826b6f4a373b90ba27e724c6ffced167851c6d1 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 9 Oct 2015 16:30:18 +0200 Subject: [PATCH] added test for #9869 --- tests/framework/db/sqlite/SqliteConnectionTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/framework/db/sqlite/SqliteConnectionTest.php b/tests/framework/db/sqlite/SqliteConnectionTest.php index c36e5e6..0978158 100644 --- a/tests/framework/db/sqlite/SqliteConnectionTest.php +++ b/tests/framework/db/sqlite/SqliteConnectionTest.php @@ -142,4 +142,17 @@ class SqliteConnectionTest extends ConnectionTest return \Yii::createObject($config); } + + public function testAliasDbPath() + { + $config = [ + 'dsn' => "sqlite:@yiiunit/runtime/yii2aliastest.sq3", + ]; + $connection = new Connection($config); + $connection->open(); + $this->assertTrue($connection->isActive); + $this->assertEquals($config['dsn'], $connection->dsn); + + $connection->close(); + } }