mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
37 lines
933 B
PHP
37 lines
933 B
PHP
|
<?php
|
||
|
|
||
|
namespace tests\Integration\Domain\RequestManagement\Right;
|
||
|
|
||
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||
|
use App\DBAL\Types\Meta\Right\CRUDType;
|
||
|
use App\Domain\RequestManagement\User\RequestedUserServiceInterface;
|
||
|
|
||
|
/**
|
||
|
* @author kevinfrantz
|
||
|
*/
|
||
|
class RequestedUserServiceIntegrationTest extends KernelTestCase
|
||
|
{
|
||
|
/**
|
||
|
* @var RequestedUserServiceInterface
|
||
|
*/
|
||
|
private $requestedUserService;
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*
|
||
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
||
|
*/
|
||
|
public function setUp(): void
|
||
|
{
|
||
|
self::bootKernel();
|
||
|
$this->requestedUserService = self::$container->get(RequestedUserServiceInterface::class);
|
||
|
}
|
||
|
|
||
|
public function testCrudAccessors(): void
|
||
|
{
|
||
|
$crud = CRUDType::READ;
|
||
|
$this->assertNull($this->requestedUserService->setCrud($crud));
|
||
|
$this->assertEquals($crud, $this->requestedUserService->getCrud());
|
||
|
}
|
||
|
}
|