Skip to content

Commit ef17d5e

Browse files
committed
PHPLIB-684 Add test group annotations for serverless spec tests
1 parent 3d60340 commit ef17d5e

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

tests/Collection/CrudSpecFunctionalTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
*
3333
* @see https://github.com/mongodb/specifications/tree/master/source/crud/tests
3434
*
35+
* @group serverless
3536
* @group matrix-testing-exclude-server-5.0-driver-4.0
3637
*/
3738
class CrudSpecFunctionalTest extends FunctionalTestCase

tests/SpecTests/RetryableReadsSpecTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Retryable reads spec tests.
1515
*
1616
* @see https://github.com/mongodb/specifications/tree/master/source/retryable-reads
17+
* @group serverless
1718
*/
1819
class RetryableReadsSpecTest extends FunctionalTestCase
1920
{

tests/SpecTests/RetryableWritesSpecTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Retryable writes spec tests.
1313
*
1414
* @see https://github.com/mongodb/specifications/tree/master/source/retryable-writes
15+
* @group serverless
1516
*/
1617
class RetryableWritesSpecTest extends FunctionalTestCase
1718
{

tests/SpecTests/TransactionsSpecTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public static function assertCommandMatches(stdClass $expected, stdClass $actual
112112

113113
/**
114114
* @dataProvider provideTransactionsTests
115+
* @group serverless
115116
*/
116117
public function testTransactions(stdClass $test, ?array $runOn = null, array $data, ?string $databaseName = null, ?string $collectionName = null): void
117118
{

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function provideCommandMonitoringTests()
9090

9191
/**
9292
* @dataProvider provideCrudTests
93+
* @group serverless
9394
*/
9495
public function testCrud(UnifiedTestCase $test): void
9596
{
@@ -129,6 +130,7 @@ public function provideSessionsTests()
129130

130131
/**
131132
* @dataProvider provideTransactionsTests
133+
* @group serverless
132134
*/
133135
public function testTransactions(UnifiedTestCase $test): void
134136
{
@@ -143,6 +145,7 @@ public function provideTransactionsTests()
143145
/**
144146
* @dataProvider provideVersionedApiTests
145147
* @group versioned-api
148+
* @group serverless
146149
*/
147150
public function testVersionedApi(UnifiedTestCase $test): void
148151
{

0 commit comments

Comments
 (0)