entityManager = static::$kernel->getContainer()->get('doctrine')->getManager(); } public function testImpressumSource(): void { $sourceRepository = $this->entityManager->getRepository(AbstractSource::class); $imprint = $sourceRepository->findOneBySlug(SystemSlugType::IMPRINT); $this->assertInternalType('string', $imprint->getText()); } public function testGuestUserSource(): void { $sourceRepository = $this->entityManager->getRepository(AbstractSource::class); $userSource = $sourceRepository->findOneBySlug(SystemSlugType::GUEST_USER); $this->assertInstanceOf(UserSourceInterface::class, $userSource); } }