We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b1c56 commit bf09351Copy full SHA for bf09351
tests/ConnectionTest.php
@@ -190,6 +190,12 @@ public static function dataConnectionConfig(): Generator
190
'expectedDatabaseName' => 'tests',
191
'config' => ['dsn' => 'mongodb://some-host:12345/tests'],
192
];
193
+
194
+ yield 'Database is extracted from DSN with CA path in options' => [
195
+ 'expectedUri' => 'mongodb://some-host:12345/tests?tls=true&tlsCAFile=/path/to/ca.pem&retryWrites=false',
196
+ 'expectedDatabaseName' => 'tests',
197
+ 'config' => ['dsn' => 'mongodb://some-host:12345/tests?tls=true&tlsCAFile=/path/to/ca.pem&retryWrites=false'],
198
+ ];
199
}
200
201
#[DataProvider('dataConnectionConfig')]
0 commit comments