File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
tests/Collection/CrudSpec Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace MongoDB \Tests \Collection \CrudSpec ;
4
4
5
5
use MongoDB \Collection ;
6
+ use MongoDB \FeatureDetection ;
7
+ use MongoDB \Driver \ReadPreference ;
6
8
7
9
/**
8
10
* CRUD spec functional tests for aggregate().
@@ -39,6 +41,12 @@ public function testAggregateWithMultipleStages()
39
41
40
42
public function testAggregateWithOut ()
41
43
{
44
+ $ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
45
+
46
+ if ( ! FeatureDetection::isSupported ($ server , FeatureDetection::API_AGGREGATE_CURSOR )) {
47
+ $ this ->markTestSkipped ('$out aggregation pipeline operator is not supported ' );
48
+ }
49
+
42
50
$ outputCollection = new Collection ($ this ->manager , $ this ->getNamespace () . '_output ' );
43
51
$ this ->dropCollectionIfItExists ($ outputCollection );
44
52
You can’t perform that action at this time.
0 commit comments