Specified UserSourceRepositoryTests

This commit is contained in:
Kevin Frantz 2018-11-26 00:00:11 +01:00
parent ba39321efe
commit ce8f53780a

View File

@ -64,6 +64,9 @@ class UserSourceRepositoryTest extends KernelTestCase
$userSourceId = $userSource->getId(); $userSourceId = $userSource->getId();
$loadedUserSource = $this->entityManager->getRepository(UserSource::class)->find($userSourceId); $loadedUserSource = $this->entityManager->getRepository(UserSource::class)->find($userSourceId);
$this->assertEquals($userSourceId, $loadedUserSource->getId()); $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->remove($loadedUserSource);
$this->entityManager->flush(); $this->entityManager->flush();
} }