File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ public function testSingleDocumentManagerConfiguration()
107107 'default ' => [
108108 'server ' => 'mongodb://localhost:27017 ' ,
109109 'options ' => [],
110+ 'driver_options ' => ['context ' => 'my_context ' ],
110111 ],
111112 ],
112113 'document_managers ' => ['default ' => []],
@@ -121,6 +122,8 @@ public function testSingleDocumentManagerConfiguration()
121122 $ this ->assertEquals ([], $ arguments [1 ]);
122123 $ this ->assertArrayHasKey ('typeMap ' , $ arguments [2 ]);
123124 $ this ->assertSame (['root ' => 'array ' , 'document ' => 'array ' ], $ arguments [2 ]['typeMap ' ]);
125+ $ this ->assertArrayHasKey ('context ' , $ arguments [2 ]);
126+ $ this ->assertEquals (new Reference ('my_context ' ), $ arguments [2 ]['context ' ]);
124127
125128 $ definition = $ container ->getDefinition ('doctrine_mongodb.odm.default_document_manager ' );
126129 $ this ->assertEquals ('%doctrine_mongodb.odm.document_manager.class% ' , $ definition ->getClass ());
You can’t perform that action at this time.
0 commit comments