From 61a6ea6b369ae9369b195be56a1aa867110f94d8 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Mon, 26 Nov 2018 22:47:03 +0100 Subject: [PATCH] Solved UserSourceRepositoryTest --- .../Unit/Repository/UserSourceRepositoryTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/tests/Unit/Repository/UserSourceRepositoryTest.php b/application/tests/Unit/Repository/UserSourceRepositoryTest.php index 3bf04aa..abbbe0a 100644 --- a/application/tests/Unit/Repository/UserSourceRepositoryTest.php +++ b/application/tests/Unit/Repository/UserSourceRepositoryTest.php @@ -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();