mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-07 13:31:34 +01:00
Solved UserSourceRepositoryTest
This commit is contained in:
parent
3002d77b1c
commit
61a6ea6b36
@ -38,14 +38,14 @@ class UserSourceRepositoryTest extends KernelTestCase
|
||||
$this->entityManager->flush();
|
||||
$this->assertGreaterThan(0, $insertSource->getId());
|
||||
$this->assertGreaterThan(0, $origineSource->getId());
|
||||
$this->assertEquals($insertSource, $origineSource->getMembers()
|
||||
->get(0));
|
||||
$this->assertEquals($origineSource, $insertSource->getMemberships()
|
||||
->get(0));
|
||||
$this->assertEquals($insertSource, $origineSource->getMemberRelation()->getMembers()
|
||||
->get(0)->getSource());
|
||||
$this->assertEquals($origineSource, $insertSource->getMemberRelation()->getMemberships()
|
||||
->get(0)->getSource());
|
||||
$this->assertNull($origineSourceMemberManager->removeMember($insertSource));
|
||||
$this->assertEquals(0, $origineSource->getMembers()
|
||||
$this->assertEquals(0, $origineSource->getMemberRelation()->getMembers()
|
||||
->count());
|
||||
$this->assertEquals(0, $insertSource->getMemberships()
|
||||
$this->assertEquals(0, $insertSource->getMemberRelation()->getMemberships()
|
||||
->count());
|
||||
$this->entityManager->remove($origineSource);
|
||||
$this->entityManager->flush();
|
||||
|
Loading…
Reference in New Issue
Block a user