fix merge
This commit is contained in:
parent
ffd707cf9d
commit
60ce71e593
|
@ -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 @@ class PostgreSqlConnectionTest extends TestCase
|
|||
$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 @@ class PostgreSqlConnectionTest extends TestCase
|
|||
$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();
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue