File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -384,9 +384,16 @@ protected function skipIfTransactionsAreNotSupported()
384
384
$ this ->markTestSkipped ('Transactions are not supported on standalone servers ' );
385
385
}
386
386
387
- // TODO: MongoDB 4.2 should support sharded clusters (see: PHPLIB-374)
388
387
if ($ this ->isShardedCluster ()) {
389
- $ this ->markTestSkipped ('Transactions are not supported on sharded clusters ' );
388
+ if (! $ this ->isShardedClusterUsingReplicasets ()) {
389
+ $ this ->markTestSkipped ('Transactions are not supported on sharded clusters without replica sets ' );
390
+ }
391
+
392
+ if (version_compare ($ this ->getFeatureCompatibilityVersion (), '4.2 ' , '< ' )) {
393
+ $ this ->markTestSkipped ('Transactions are only supported on FCV 4.2 or higher ' );
394
+ }
395
+
396
+ return ;
390
397
}
391
398
392
399
if (version_compare ($ this ->getFeatureCompatibilityVersion (), '4.0 ' , '< ' )) {
You can’t perform that action at this time.
0 commit comments