File tree 1 file changed +3
-2
lines changed
src/Symfony/Bridge/Doctrine/Tests 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bridge \Doctrine \Tests ;
13
13
14
+ use Doctrine \Persistence \ObjectManager ;
14
15
use PHPUnit \Framework \TestCase ;
15
16
use ProxyManager \Proxy \LazyLoadingInterface ;
16
17
use ProxyManager \Proxy \ValueHolderInterface ;
@@ -29,7 +30,7 @@ public static function setUpBeforeClass(): void
29
30
$ container = new ContainerBuilder ();
30
31
31
32
$ container ->register ('foo ' , DummyManager::class)->setPublic (true );
32
- $ container ->getDefinition ('foo ' )->setLazy (true );
33
+ $ container ->getDefinition ('foo ' )->setLazy (true )-> addTag ( ' proxy ' , [ ' interface ' => ObjectManager::class]) ;
33
34
$ container ->compile ();
34
35
35
36
$ dumper = new PhpDumper ($ container );
@@ -51,7 +52,7 @@ public function testResetService()
51
52
$ registry ->resetManager ();
52
53
53
54
$ this ->assertSame ($ foo , $ container ->get ('foo ' ));
54
- $ this ->assertInstanceOf (DummyManager ::class, $ foo );
55
+ $ this ->assertInstanceOf (ObjectManager ::class, $ foo );
55
56
$ this ->assertFalse (isset ($ foo ->bar ));
56
57
}
57
58
You can’t perform that action at this time.
0 commit comments