Implemented SourceRepository

This commit is contained in:
Kevin Frantz
2019-01-04 20:10:08 +01:00
parent ae737b6923
commit a074932fb5
7 changed files with 33 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ class SecureSourceLoaderTest extends KernelTestCase
$requestedRight->setSource($requestedSource);
$requestedRight->setLayer(LayerType::SOURCE);
$requestedRight->setType(RightType::READ);
$requestedRight->setReciever($this->sourceRepository->findOneBy(['slug' => SystemSlugType::GUEST_USER]));
$requestedRight->setReciever($this->sourceRepository->findOneBySlug(SystemSlugType::GUEST_USER));
$secureSourceLoader = new SecureSourceLoader($this->entityManager, $requestedRight);
$this->assertInstanceOf(TextSourceInterface::class, $secureSourceLoader->getSource());
}