mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
37 lines
979 B
PHP
37 lines
979 B
PHP
<?php
|
|
|
|
namespace tests\Integration\Domain\RequestManagement\Action;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
|
use App\Domain\RequestManagement\Action\RequestedActionServiceInterface;
|
|
use App\DBAL\Types\ActionType;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
class RequestedActionServiceIntegrationTest extends KernelTestCase
|
|
{
|
|
/**
|
|
* @var RequestedActionServiceInterface
|
|
*/
|
|
private $requestedActionService;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
|
*/
|
|
public function setUp(): void
|
|
{
|
|
self::bootKernel();
|
|
$this->requestedActionService = self::$container->get(RequestedActionServiceInterface::class);
|
|
}
|
|
|
|
public function testActionAccessors(): void
|
|
{
|
|
$actionType = ActionType::THREAD;
|
|
$this->assertNull($this->requestedActionService->setActionType($actionType));
|
|
$this->assertEquals($actionType, $this->requestedActionService->getActionType());
|
|
}
|
|
}
|