File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ public function testDependencyInjectionConfigurationDefaults(): void
4545 $ loader ->load (DoctrineMongoDBExtensionTest::buildConfiguration (), $ container );
4646
4747 $ this ->assertEquals ('MongoDBODMProxies ' , $ container ->getParameter ('doctrine_mongodb.odm.proxy_namespace ' ));
48- $ this ->assertEquals (Configuration::AUTOGENERATE_EVAL , $ container ->getParameter ('doctrine_mongodb.odm.auto_generate_proxy_classes ' ));
48+ $ this ->assertEquals (
49+ self ::useNativeLazyObject () ? Configuration::AUTOGENERATE_NEVER : Configuration::AUTOGENERATE_EVAL ,
50+ $ container ->getParameter ('doctrine_mongodb.odm.auto_generate_proxy_classes ' ),
51+ );
4952
5053 $ config = DoctrineMongoDBExtensionTest::buildConfiguration ([
5154 'proxy_namespace ' => 'MyProxies ' ,
@@ -375,7 +378,7 @@ public function testDependencyInjectionImportsOverrideDefaults(): void
375378 $ container ->getCompilerPassConfig ()->setRemovingPasses ([]);
376379 $ container ->compile ();
377380
378- $ this ->assertTrue (( bool ) $ container ->getParameter ('doctrine_mongodb.odm.auto_generate_proxy_classes ' ));
381+ $ this ->assertSame ( self :: useNativeLazyObject (), ! $ container ->getParameter ('doctrine_mongodb.odm.auto_generate_proxy_classes ' ));
379382 }
380383
381384 public function testResolveTargetDocument (): void
You can’t perform that action at this time.
0 commit comments