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 8
8
use Doctrine \Common \Annotations \AnnotationReader ;
9
9
use Doctrine \DBAL \Connection ;
10
10
use Doctrine \ORM \EntityManagerInterface ;
11
+ use Doctrine \Persistence \ObjectManager ;
11
12
use Fixtures \Bundles \RepositoryServiceBundle \Entity \TestCustomClassRepoEntity ;
12
13
use Fixtures \Bundles \RepositoryServiceBundle \Repository \TestCustomClassRepoRepository ;
13
14
use InvalidArgumentException ;
14
15
use ProxyManager \Proxy \ProxyInterface ;
15
- use stdClass ;
16
16
use Symfony \Component \DependencyInjection \Container ;
17
17
use Symfony \Component \VarExporter \LazyObjectInterface ;
18
18
@@ -78,7 +78,7 @@ public function testGetConnectionNames(): void
78
78
79
79
public function testGetDefaultEntityManager (): void
80
80
{
81
- $ em = new stdClass ( );
81
+ $ em = $ this -> createMock (ObjectManager::class );
82
82
$ container = new Container ();
83
83
$ container ->set ('doctrine.orm.default_entity_manager ' , $ em );
84
84
@@ -89,7 +89,7 @@ public function testGetDefaultEntityManager(): void
89
89
90
90
public function testGetEntityManager (): void
91
91
{
92
- $ em = new stdClass ( );
92
+ $ em = $ this -> createMock (ObjectManager::class );
93
93
$ container = new Container ();
94
94
$ container ->set ('doctrine.orm.default_entity_manager ' , $ em );
95
95
You can’t perform that action at this time.
0 commit comments