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
2ec8ccfd
Commit
2ec8ccfd
authored
Oct 26, 2018
by
Derick Rethans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip bypassDocumentValidation tests for MongoDB versions prior to 3.2
parent
554e73f7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
0 deletions
+64
-0
AggregateFunctionalTest.php
tests/Operation/AggregateFunctionalTest.php
+8
-0
BulkWriteFunctionalTest.php
tests/Operation/BulkWriteFunctionalTest.php
+8
-0
ExplainFunctionalTest.php
tests/Operation/ExplainFunctionalTest.php
+8
-0
FindAndModifyFunctionalTest.php
tests/Operation/FindAndModifyFunctionalTest.php
+8
-0
InsertManyFunctionalTest.php
tests/Operation/InsertManyFunctionalTest.php
+8
-0
InsertOneFunctionalTest.php
tests/Operation/InsertOneFunctionalTest.php
+8
-0
MapReduceFunctionalTest.php
tests/Operation/MapReduceFunctionalTest.php
+8
-0
UpdateFunctionalTest.php
tests/Operation/UpdateFunctionalTest.php
+8
-0
No files found.
tests/Operation/AggregateFunctionalTest.php
View file @
2ec8ccfd
...
@@ -195,6 +195,10 @@ class AggregateFunctionalTest extends FunctionalTestCase
...
@@ -195,6 +195,10 @@ class AggregateFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
Aggregate
(
$operation
=
new
Aggregate
(
...
@@ -215,6 +219,10 @@ class AggregateFunctionalTest extends FunctionalTestCase
...
@@ -215,6 +219,10 @@ class AggregateFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
Aggregate
(
$operation
=
new
Aggregate
(
...
...
tests/Operation/BulkWriteFunctionalTest.php
View file @
2ec8ccfd
...
@@ -307,6 +307,10 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
...
@@ -307,6 +307,10 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
BulkWrite
(
$operation
=
new
BulkWrite
(
...
@@ -327,6 +331,10 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
...
@@ -327,6 +331,10 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
BulkWrite
(
$operation
=
new
BulkWrite
(
...
...
tests/Operation/ExplainFunctionalTest.php
View file @
2ec8ccfd
...
@@ -294,6 +294,10 @@ class ExplainFunctionalTest extends FunctionalTestCase
...
@@ -294,6 +294,10 @@ class ExplainFunctionalTest extends FunctionalTestCase
public
function
testUpdateBypassDocumentValidationSetWhenTrue
()
public
function
testUpdateBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
$this
->
createFixtures
(
3
);
$this
->
createFixtures
(
3
);
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
...
@@ -321,6 +325,10 @@ class ExplainFunctionalTest extends FunctionalTestCase
...
@@ -321,6 +325,10 @@ class ExplainFunctionalTest extends FunctionalTestCase
public
function
testUpdateBypassDocumentValidationUnsetWhenFalse
()
public
function
testUpdateBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
$this
->
createFixtures
(
3
);
$this
->
createFixtures
(
3
);
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
...
...
tests/Operation/FindAndModifyFunctionalTest.php
View file @
2ec8ccfd
...
@@ -78,6 +78,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase
...
@@ -78,6 +78,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
FindAndModify
(
$operation
=
new
FindAndModify
(
...
@@ -97,6 +101,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase
...
@@ -97,6 +101,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
FindAndModify
(
$operation
=
new
FindAndModify
(
...
...
tests/Operation/InsertManyFunctionalTest.php
View file @
2ec8ccfd
...
@@ -78,6 +78,10 @@ class InsertManyFunctionalTest extends FunctionalTestCase
...
@@ -78,6 +78,10 @@ class InsertManyFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
InsertMany
(
$operation
=
new
InsertMany
(
...
@@ -98,6 +102,10 @@ class InsertManyFunctionalTest extends FunctionalTestCase
...
@@ -98,6 +102,10 @@ class InsertManyFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
InsertMany
(
$operation
=
new
InsertMany
(
...
...
tests/Operation/InsertOneFunctionalTest.php
View file @
2ec8ccfd
...
@@ -93,6 +93,10 @@ class InsertOneFunctionalTest extends FunctionalTestCase
...
@@ -93,6 +93,10 @@ class InsertOneFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
InsertOne
(
$operation
=
new
InsertOne
(
...
@@ -113,6 +117,10 @@ class InsertOneFunctionalTest extends FunctionalTestCase
...
@@ -113,6 +117,10 @@ class InsertOneFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
InsertOne
(
$operation
=
new
InsertOne
(
...
...
tests/Operation/MapReduceFunctionalTest.php
View file @
2ec8ccfd
...
@@ -158,6 +158,10 @@ class MapReduceFunctionalTest extends FunctionalTestCase
...
@@ -158,6 +158,10 @@ class MapReduceFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
$this
->
createFixtures
(
1
);
$this
->
createFixtures
(
1
);
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
...
@@ -182,6 +186,10 @@ class MapReduceFunctionalTest extends FunctionalTestCase
...
@@ -182,6 +186,10 @@ class MapReduceFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
$this
->
createFixtures
(
1
);
$this
->
createFixtures
(
1
);
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
...
...
tests/Operation/UpdateFunctionalTest.php
View file @
2ec8ccfd
...
@@ -48,6 +48,10 @@ class UpdateFunctionalTest extends FunctionalTestCase
...
@@ -48,6 +48,10 @@ class UpdateFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationSetWhenTrue
()
public
function
testBypassDocumentValidationSetWhenTrue
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
Update
(
$operation
=
new
Update
(
...
@@ -69,6 +73,10 @@ class UpdateFunctionalTest extends FunctionalTestCase
...
@@ -69,6 +73,10 @@ class UpdateFunctionalTest extends FunctionalTestCase
public
function
testBypassDocumentValidationUnsetWhenFalse
()
public
function
testBypassDocumentValidationUnsetWhenFalse
()
{
{
if
(
version_compare
(
$this
->
getServerVersion
(),
'3.2.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'bypassDocumentValidation is not supported'
);
}
(
new
CommandObserver
)
->
observe
(
(
new
CommandObserver
)
->
observe
(
function
()
{
function
()
{
$operation
=
new
Update
(
$operation
=
new
Update
(
...
...
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