diff --git a/tests/Integration/DataAccess/PaymentMigration/ChunkedQueryResultIteratorTest.php b/tests/Integration/DataAccess/PaymentMigration/ChunkedQueryResultIteratorTest.php index 7fc01099..cbe0b65e 100644 --- a/tests/Integration/DataAccess/PaymentMigration/ChunkedQueryResultIteratorTest.php +++ b/tests/Integration/DataAccess/PaymentMigration/ChunkedQueryResultIteratorTest.php @@ -5,7 +5,6 @@ use Doctrine\DBAL\Connection; use Doctrine\DBAL\DriverManager; -use Doctrine\DBAL\Tools\DsnParser; use PHPUnit\Framework\TestCase; use WMDE\Fundraising\DonationContext\DataAccess\PaymentMigration\ChunkedQueryResultIterator; @@ -17,10 +16,7 @@ class ChunkedQueryResultIteratorTest extends TestCase { protected function setUp(): void { parent::setUp(); - $dsnParser = new DsnParser( [ 'sqlite' => 'pdo_sqlite' ] ); - $this->db = DriverManager::getConnection( - $dsnParser->parse( 'sqlite:///:memory:' ) - ); + $this->db = DriverManager::getConnection( [ 'url' => 'sqlite:///:memory:', 'driver' => 'pdo_sqlite' ] ); $this->db->executeQuery( "CREATE TABLE test( id INTEGER PRIMARY KEY )" ); }