Commit cb595b6d authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #613

parents d5ce656a a9285003
......@@ -190,7 +190,13 @@ class AggregateFunctionalTest extends FunctionalTestCase
$results = iterator_to_array($operation->execute($this->getPrimaryServer()));
$this->assertCount(1, $results);
$this->assertArrayHasKey('stages', $results[0]);
/* MongoDB 4.2 may optimize aggregate pipelines into queries, which can
* result in different explain output (see: SERVER-24860) */
$this->assertThat($results[0], $this->logicalOr(
$this->arrayHasKey('stages'),
$this->arrayHasKey('queryPlanner')
));
}
public function testExplainOptionWithWriteConcern()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment