mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
37 lines
965 B
PHP
37 lines
965 B
PHP
<?php
|
|
|
|
namespace tests\Integration\Domain\RequestManagement\Right;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
|
use Infinito\Domain\RequestManagement\Right\RequestedRightServiceInterface;
|
|
use Infinito\DBAL\Types\Meta\Right\CRUDType;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
class RequestedRightServiceIntegrationTest extends KernelTestCase
|
|
{
|
|
/**
|
|
* @var RequestedRightServiceInterface
|
|
*/
|
|
private $requestedRightService;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
|
*/
|
|
public function setUp(): void
|
|
{
|
|
self::bootKernel();
|
|
$this->requestedRightService = self::$container->get(RequestedRightServiceInterface::class);
|
|
}
|
|
|
|
public function testClassAccessors(): void
|
|
{
|
|
$crud = CRUDType::READ;
|
|
$this->assertNull($this->requestedRightService->setActionType($crud));
|
|
$this->assertEquals($crud, $this->requestedRightService->getActionType());
|
|
}
|
|
}
|