Commit d7c3cc48 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-386: Assert upsertedIds field in bulkWrite CRUD spec tests

parent 25aeff8e
......@@ -263,10 +263,10 @@ class CrudSpecFunctionalTest extends FunctionalTestCase
$this->assertSame($expectedResult['upsertedCount'], $actualResult->getUpsertedCount());
}
if (array_key_exists('upsertedId', $expectedResult)) {
if (isset($expectedResult['upsertedIds'])) {
$this->assertSameDocument(
['upsertedId' => $expectedResult['upsertedId']],
['upsertedId' => $actualResult->getUpsertedId()]
['upsertedIds' => $expectedResult['upsertedIds']],
['upsertedIds' => $actualResult->getUpsertedIds()]
);
}
break;
......
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