From 8daea7eefbc4729ba5d28569be0565d85736beac Mon Sep 17 00:00:00 2001 From: Sperling-0 Date: Fri, 8 Mar 2024 11:05:14 +0100 Subject: [PATCH] Fix -- Update Doctrine ORM - This is a fix for this PR - https://github.com/wmde/fundraising-donations/pull/232 which has already been merged Ticket: https://phabricator.wikimedia.org/T356744 --- .../PaymentMigration/ChunkedQueryResultIteratorTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 )" ); }