Skip to content

Commit a1af358

Browse files
committed
PHPLIB-530: Skip failing spec tests
1 parent 3673d32 commit a1af358

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/SpecTests/CrudSpecTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
*/
1515
class CrudSpecTest extends FunctionalTestCase
1616
{
17+
/** @var array */
18+
private static $incompleteTests = [
19+
'find-allowdiskuse: Find does not send allowDiskuse when value is not specified' => 'PHPLIB-500',
20+
'find-allowdiskuse: Find sends allowDiskuse false when false is specified' => 'PHPLIB-500',
21+
'find-allowdiskuse: Find sends allowDiskUse true when true is specified' => 'PHPLIB-500',
22+
];
23+
1724
/**
1825
* Assert that the expected and actual command documents match.
1926
*
@@ -37,6 +44,10 @@ public static function assertCommandMatches(stdClass $expected, stdClass $actual
3744
*/
3845
public function testCrud(stdClass $test, array $runOn = null, array $data, $databaseName = null, $collectionName = null)
3946
{
47+
if (isset(self::$incompleteTests[$this->dataDescription()])) {
48+
$this->markTestIncomplete(self::$incompleteTests[$this->dataDescription()]);
49+
}
50+
4051
if (isset($runOn)) {
4152
$this->checkServerRequirements($runOn);
4253
}

0 commit comments

Comments
 (0)