Skip to content

Commit e4511d9

Browse files
committed
Test for invalid ReadConcern options
1 parent f892925 commit e4511d9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public function provideInvalidConstructorOptions()
4747
{
4848
$options = [];
4949

50+
foreach ($this->getInvalidReadConcernValues() as $value) {
51+
$options[][] = ['readConcern' => $value];
52+
}
53+
5054
foreach ($this->getInvalidReadPreferenceValues() as $value) {
5155
$options[][] = ['readPreference' => $value];
5256
}

tests/Database/DatabaseFunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public function provideInvalidConstructorOptions()
4444
{
4545
$options = [];
4646

47+
foreach ($this->getInvalidReadConcernValues() as $value) {
48+
$options[][] = ['readConcern' => $value];
49+
}
50+
4751
foreach ($this->getInvalidReadPreferenceValues() as $value) {
4852
$options[][] = ['readPreference' => $value];
4953
}

0 commit comments

Comments
 (0)