From ce8f53780a5e1000994cb5cb720301cf76adfb8c Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Mon, 26 Nov 2018 00:00:11 +0100 Subject: [PATCH] Specified UserSourceRepositoryTests --- application/tests/Unit/Repository/UserSourceRepositoryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/tests/Unit/Repository/UserSourceRepositoryTest.php b/application/tests/Unit/Repository/UserSourceRepositoryTest.php index 2785f6b..3bf04aa 100644 --- a/application/tests/Unit/Repository/UserSourceRepositoryTest.php +++ b/application/tests/Unit/Repository/UserSourceRepositoryTest.php @@ -64,6 +64,9 @@ class UserSourceRepositoryTest extends KernelTestCase $userSourceId = $userSource->getId(); $loadedUserSource = $this->entityManager->getRepository(UserSource::class)->find($userSourceId); $this->assertEquals($userSourceId, $loadedUserSource->getId()); + $this->assertGreaterThan(0, $userSource->getCreatorRelation()->getId()); + $this->assertGreaterThan(0, $userSource->getLaw()->getId()); + $this->assertFalse($userSource->hasPersonIdentitySource()); $this->entityManager->remove($loadedUserSource); $this->entityManager->flush(); }