File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88use Doctrine \Common \Annotations \AnnotationReader ;
99use Doctrine \DBAL \Connection ;
1010use Doctrine \ORM \EntityManagerInterface ;
11+ use Doctrine \Persistence \ObjectManager ;
1112use Fixtures \Bundles \RepositoryServiceBundle \Entity \TestCustomClassRepoEntity ;
1213use Fixtures \Bundles \RepositoryServiceBundle \Repository \TestCustomClassRepoRepository ;
1314use InvalidArgumentException ;
1415use ProxyManager \Proxy \ProxyInterface ;
15- use stdClass ;
1616use Symfony \Component \DependencyInjection \Container ;
1717use Symfony \Component \VarExporter \LazyObjectInterface ;
1818
@@ -78,7 +78,7 @@ public function testGetConnectionNames(): void
7878
7979 public function testGetDefaultEntityManager (): void
8080 {
81- $ em = new stdClass ( );
81+ $ em = $ this -> createMock (ObjectManager::class );
8282 $ container = new Container ();
8383 $ container ->set ('doctrine.orm.default_entity_manager ' , $ em );
8484
@@ -89,7 +89,7 @@ public function testGetDefaultEntityManager(): void
8989
9090 public function testGetEntityManager (): void
9191 {
92- $ em = new stdClass ( );
92+ $ em = $ this -> createMock (ObjectManager::class );
9393 $ container = new Container ();
9494 $ container ->set ('doctrine.orm.default_entity_manager ' , $ em );
9595
You can’t perform that action at this time.
0 commit comments