Skip to content

Commit

Permalink
Merge pull request #237 from wmde/fix-doctrine-update-2024
Browse files Browse the repository at this point in the history
Fix -- Update Doctrine ORM
  • Loading branch information
Sperling-0 authored Mar 13, 2024
2 parents 5f57df3 + 8daea7e commit 972f84e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 )" );
}

Expand Down

0 comments on commit 972f84e

Please sign in to comment.