Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
a1af3588
Unverified
Commit
a1af3588
authored
Feb 14, 2020
by
Andreas Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-530: Skip failing spec tests
parent
3673d325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
CrudSpecTest.php
tests/SpecTests/CrudSpecTest.php
+11
-0
No files found.
tests/SpecTests/CrudSpecTest.php
View file @
a1af3588
...
...
@@ -14,6 +14,13 @@ use function glob;
*/
class
CrudSpecTest
extends
FunctionalTestCase
{
/** @var array */
private
static
$incompleteTests
=
[
'find-allowdiskuse: Find does not send allowDiskuse when value is not specified'
=>
'PHPLIB-500'
,
'find-allowdiskuse: Find sends allowDiskuse false when false is specified'
=>
'PHPLIB-500'
,
'find-allowdiskuse: Find sends allowDiskUse true when true is specified'
=>
'PHPLIB-500'
,
];
/**
* Assert that the expected and actual command documents match.
*
...
...
@@ -37,6 +44,10 @@ class CrudSpecTest extends FunctionalTestCase
*/
public
function
testCrud
(
stdClass
$test
,
array
$runOn
=
null
,
array
$data
,
$databaseName
=
null
,
$collectionName
=
null
)
{
if
(
isset
(
self
::
$incompleteTests
[
$this
->
dataDescription
()]))
{
$this
->
markTestIncomplete
(
self
::
$incompleteTests
[
$this
->
dataDescription
()]);
}
if
(
isset
(
$runOn
))
{
$this
->
checkServerRequirements
(
$runOn
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment