Skip to content

Commit

Permalink
Update tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
mpdude and greg0ire authored Apr 13, 2023
1 parent 8ceee3a commit eb7e540
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,10 @@ public function testRemovedEntityIsRemovedFromManyToManyCollection(): void
$this->_unitOfWork->commit();

// Test that the removed entity has been removed from the many to many collection
self::assertEmpty($user->groups);
self::assertEmpty(
$user->groups,
'the removed entity should have been removed from the many to many collection'
);

// Collection is clean, snapshot has been updated
self::assertFalse($user->groups->isDirty());
Expand Down

0 comments on commit eb7e540

Please sign in to comment.