Skip to content

Commit 51ba28d

Browse files
committed
Require MongoDB 4.2+ for update pipeline tests
1 parent ce5bddf commit 51ba28d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Operation/UpdateFunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public function provideFilterDocuments(): array
7070
*/
7171
public function testUpdateDocuments($update, $expectedUpdate): void
7272
{
73+
if (is_array($expectedUpdate) && version_compare($this->getServerVersion(), '4.2.0', '<')) {
74+
$this->markTestSkipped('Pipeline-style updates are not supported');
75+
}
76+
7377
(new CommandObserver())->observe(
7478
function () use ($update): void {
7579
$operation = new Update(

0 commit comments

Comments
 (0)