Skip to content

Commit 0ed7f67

Browse files
committed
Update comment regarding missing identifiers in tests
1 parent e3d68a7 commit 0ed7f67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Collection/CodecCollectionFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ public function testInsertOne($expected, $options): void
436436
$result = $this->collection->insertOne(TestObject::createForFixture(1), $options);
437437
$this->assertSame(1, $result->getInsertedCount());
438438

439-
// Add missing identifiers. This is relevant for the "No codec" data set, as the encoded document will not have
440-
// an "_id" field and the driver will automatically generate one.
439+
// Add missing identifiers. This is relevant for the "No codec" data set, as the encoded document will have an
440+
// automatically generated identifier, which needs to be used in the expected document.
441441
if ($expected instanceof BSONDocument && $expected->_id === null) {
442442
$expected->_id = $result->getInsertedId();
443443
}

0 commit comments

Comments
 (0)