infinito/application/symfony/tests/Integration/Domain/UserManagement/UserSourceDirectorServiceIntegrationTest.php
2019-02-17 14:33:19 +01:00

35 lines
866 B
PHP

<?php
namespace tests\Integration\Domain\UserManagement;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\UserManagement\UserSourceDirectorServiceInterface;
use Infinito\Entity\UserInterface;
/**
* @author kevinfrantz
*/
class UserSourceDirectorServiceIntegrationTest extends KernelTestCase
{
/**
* @var UserSourceDirectorServiceInterface
*/
private $userSourceDirectorService;
/**
* {@inheritdoc}
*
* @see \PHPUnit\Framework\TestCase::setUp()
*/
public function setUp(): void
{
self::bootKernel();
$this->userSourceDirectorService = self::$container->get(UserSourceDirectorServiceInterface::class);
}
public function testCrudAccessors(): void
{
$this->assertInstanceOf(UserInterface::class, $this->userSourceDirectorService->getUser());
}
}