Skip to content

Commit 7b5edb5

Browse files
committed
PHPLIB-1409: Convert default write concern tests to unified test format
Synced with mongodb/specifications@bfb6a84
1 parent 60d5d8a commit 7b5edb5

File tree

5 files changed

+1204
-0
lines changed

5 files changed

+1204
-0
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,17 @@ public function provideLoadBalancers()
311311
return $this->provideTests(__DIR__ . '/load-balancers/*.json');
312312
}
313313

314+
/** @dataProvider provideReadWriteConcernTests */
315+
public function testReadWriteConcern(UnifiedTestCase $test): void
316+
{
317+
self::$runner->run($test);
318+
}
319+
320+
public function provideReadWriteConcernTests()
321+
{
322+
return $this->provideTests(__DIR__ . '/read-write-concern/*.json');
323+
}
324+
314325
/** @dataProvider provideRetryableReadsTests */
315326
public function testRetryableReads(UnifiedTestCase $test): void
316327
{

0 commit comments

Comments
 (0)