infinito/application/symfony/tests/Integration/Domain/User/UserSourceDirectorServiceIntegrationTest.php

35 lines
846 B
PHP
Raw Normal View History

<?php
2019-05-30 17:15:50 +02:00
namespace tests\Integration\Domain\User;
2019-05-30 17:15:50 +02:00
use Infinito\Domain\User\UserSourceDirectorServiceInterface;
use Infinito\Entity\UserInterface;
2020-04-02 21:13:35 +02:00
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
/**
* @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());
}
}