Skip to content

Commit 9b2326c

Browse files
committed
properly skip tests
1 parent ae2c7f3 commit 9b2326c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/CollectionBasicTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function testCreateCollectionWithKeyOptionsAndVerifyProperties()
137137
{
138138
if (isCluster($this->connection)) {
139139
// don't execute this test in a cluster
140+
$this->markTestSkipped("test is only meaningful in single server");
140141
return;
141142
}
142143

@@ -193,6 +194,7 @@ public function testCreateCollectionWithKeyOptionsCluster()
193194
{
194195
if (!isCluster($this->connection)) {
195196
// don't execute this test in a non-cluster
197+
$this->markTestSkipped("test is only meaningful in cluster");
196198
return;
197199
}
198200

@@ -229,6 +231,7 @@ public function testCreateCollectionWithNumberOfShardsCluster()
229231
{
230232
if (!isCluster($this->connection)) {
231233
// don't execute this test in a non-cluster
234+
$this->markTestSkipped("test is only meaningful in cluster");
232235
return;
233236
}
234237

@@ -264,6 +267,7 @@ public function testCreateCollectionWithShardKeysCluster()
264267
{
265268
if (!isCluster($this->connection)) {
266269
// don't execute this test in a non-cluster
270+
$this->markTestSkipped("test is only meaningful in cluster");
267271
return;
268272
}
269273

0 commit comments

Comments
 (0)