Commit b19626ab authored by Erik Weatherwax's avatar Erik Weatherwax

Update DriverManager unit tests to use 'path' instead of 'dbname' with sqlite driver.

parent 2c345592
...@@ -151,27 +151,27 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase ...@@ -151,27 +151,27 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
), ),
'sqlite relative URL with host' => array( 'sqlite relative URL with host' => array(
'sqlite://localhost/foo/dbname.sqlite', 'sqlite://localhost/foo/dbname.sqlite',
array('dbname' => 'foo/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => 'foo/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'sqlite absolute URL with host' => array( 'sqlite absolute URL with host' => array(
'sqlite://localhost//tmp/dbname.sqlite', 'sqlite://localhost//tmp/dbname.sqlite',
array('dbname' => '/tmp/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => '/tmp/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'sqlite relative URL without host' => array( 'sqlite relative URL without host' => array(
'sqlite:///foo/dbname.sqlite', 'sqlite:///foo/dbname.sqlite',
array('dbname' => 'foo/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => 'foo/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'sqlite absolute URL without host' => array( 'sqlite absolute URL without host' => array(
'sqlite:////tmp/dbname.sqlite', 'sqlite:////tmp/dbname.sqlite',
array('dbname' => '/tmp/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => '/tmp/dbname.sqlite', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'sqlite memory' => array( 'sqlite memory' => array(
'sqlite:///:memory:', 'sqlite:///:memory:',
array('dbname' => ':memory:', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => ':memory:', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'sqlite memory with host' => array( 'sqlite memory with host' => array(
'sqlite://localhost/:memory:', 'sqlite://localhost/:memory:',
array('dbname' => ':memory:', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'), array('path' => ':memory:', 'driver' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver'),
), ),
'params parsed from URL override individual params' => array( 'params parsed from URL override individual params' => array(
array('url' => 'mysql://foo:bar@localhost/baz', 'password' => 'lulz'), array('url' => 'mysql://foo:bar@localhost/baz', 'password' => 'lulz'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment