Skip to content

Commit 6f6f78a

Browse files
committed
Add missing test for code coverage
1 parent e4b0aca commit 6f6f78a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ConnectionTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ public function dataConnectionConfig(): Generator
106106
'database' => 'tests',
107107
],
108108
];
109+
110+
yield 'Database is extracted from DSN if not specified' => [
111+
'expectedUri' => 'mongodb://some-host:12345/tests',
112+
'expectedDatabaseName' => 'tests',
113+
'config' => [
114+
'dsn' => 'mongodb://some-host:12345/tests',
115+
],
116+
];
109117
}
110118

111119
/** @dataProvider dataConnectionConfig */

0 commit comments

Comments
 (0)