diff --git a/Tests/Transport/PostgreSqlConnectionTest.php b/Tests/Transport/PostgreSqlConnectionTest.php index e110b51..fe1f2c1 100644 --- a/Tests/Transport/PostgreSqlConnectionTest.php +++ b/Tests/Transport/PostgreSqlConnectionTest.php @@ -11,7 +11,6 @@ namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Transport; -use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer; use Doctrine\DBAL\Schema\Table; use PHPUnit\Framework\TestCase; use Symfony\Component\Messenger\Bridge\Doctrine\Transport\PostgreSqlConnection; @@ -26,10 +25,9 @@ public function testSerialize() $this->expectException(\BadMethodCallException::class); $this->expectExceptionMessage('Cannot serialize '.PostgreSqlConnection::class); - $schemaSynchronizer = $this->createMock(SchemaSynchronizer::class); $driverConnection = $this->createMock(\Doctrine\DBAL\Connection::class); - $connection = new PostgreSqlConnection([], $driverConnection, $schemaSynchronizer); + $connection = new PostgreSqlConnection([], $driverConnection); serialize($connection); } @@ -38,10 +36,9 @@ public function testUnserialize() $this->expectException(\BadMethodCallException::class); $this->expectExceptionMessage('Cannot unserialize '.PostgreSqlConnection::class); - $schemaSynchronizer = $this->createMock(SchemaSynchronizer::class); $driverConnection = $this->createMock(\Doctrine\DBAL\Connection::class); - $connection = new PostgreSqlConnection([], $driverConnection, $schemaSynchronizer); + $connection = new PostgreSqlConnection([], $driverConnection); $connection->__wakeup(); }