Skip to content

Commit ce238d4

Browse files
committed
PHPLIB-1409: Convert default write concern tests to unified test format
Synced with mongodb/specifications#1547
1 parent 4c553ad commit ce238d4

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
@@ -293,6 +293,17 @@ public function provideLoadBalancers()
293293
return $this->provideTests(__DIR__ . '/load-balancers/*.json');
294294
}
295295

296+
/** @dataProvider provideReadWriteConcernTests */
297+
public function testReadWriteConcern(UnifiedTestCase $test): void
298+
{
299+
self::$runner->run($test);
300+
}
301+
302+
public function provideReadWriteConcernTests()
303+
{
304+
return $this->provideTests(__DIR__ . '/read-write-concern/*.json');
305+
}
306+
296307
/** @dataProvider provideRetryableReadsTests */
297308
public function testRetryableReads(UnifiedTestCase $test): void
298309
{

0 commit comments

Comments
 (0)