Skip to content

Commit

Permalink
Explain reasoning for index error
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Nov 24, 2023
1 parent 829557c commit b6f7647
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function testInsertErrorKeepsFailingInsertions(): void

public function testInsertErrorKeepsFailingInsertionsForDocumentClass(): void
{
// Create a unique index on the collection to let the second insert fail
// Create a unique index on the collection to let the second document fail, as using a fail point would also
// affect the first document.
$collection = $this->dm->getDocumentCollection(ForumUser::class);
$collection->createIndex(['username' => 1], ['unique' => true]);

Expand Down

0 comments on commit b6f7647

Please sign in to comment.