1111
1212namespace Symfony \Component \Messenger \Tests \Transport \Doctrine ;
1313
14+ use Doctrine \Common \Persistence \ConnectionRegistry ;
1415use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \Doctrine \RegistryInterface ;
1616use Symfony \Component \Messenger \Transport \Doctrine \Connection ;
1717use Symfony \Component \Messenger \Transport \Doctrine \DoctrineTransport ;
1818use Symfony \Component \Messenger \Transport \Doctrine \DoctrineTransportFactory ;
@@ -23,7 +23,7 @@ class DoctrineTransportFactoryTest extends TestCase
2323 public function testSupports ()
2424 {
2525 $ factory = new DoctrineTransportFactory (
26- $ this ->getMockBuilder (RegistryInterface ::class)->getMock ()
26+ $ this ->getMockBuilder (ConnectionRegistry ::class)->getMock ()
2727 );
2828
2929 $ this ->assertTrue ($ factory ->supports ('doctrine://default ' , []));
@@ -35,7 +35,7 @@ public function testCreateTransport()
3535 $ connection = $ this ->getMockBuilder (\Doctrine \DBAL \Connection::class)
3636 ->disableOriginalConstructor ()
3737 ->getMock ();
38- $ registry = $ this ->getMockBuilder (RegistryInterface ::class)->getMock ();
38+ $ registry = $ this ->getMockBuilder (ConnectionRegistry ::class)->getMock ();
3939 $ registry ->expects ($ this ->once ())
4040 ->method ('getConnection ' )
4141 ->willReturn ($ connection );
@@ -55,7 +55,7 @@ public function testCreateTransport()
5555 */
5656 public function testCreateTransportMustThrowAnExceptionIfManagerIsNotFound ()
5757 {
58- $ registry = $ this ->getMockBuilder (RegistryInterface ::class)->getMock ();
58+ $ registry = $ this ->getMockBuilder (ConnectionRegistry ::class)->getMock ();
5959 $ registry ->expects ($ this ->once ())
6060 ->method ('getConnection ' )
6161 ->willReturnCallback (function () {
0 commit comments