mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Renamed domain RequestManagement to Request
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\Request\Action;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\Domain\Request\Action\RequestedActionServiceInterface;
|
||||
use Infinito\DBAL\Types\ActionType;
|
||||
use Infinito\Domain\Request\Entity\LazyRequestedEntity;
|
||||
|
||||
/**
|
||||
* @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::EXECUTE;
|
||||
$this->assertNull($this->requestedActionService->setActionType($actionType));
|
||||
$this->assertEquals($actionType, $this->requestedActionService->getActionType());
|
||||
}
|
||||
|
||||
public function testLazyRequestedEntity(): void
|
||||
{
|
||||
$this->assertInstanceOf(LazyRequestedEntity::class, $this->requestedActionService->getRequestedEntity());
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\Request\Entity;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface;
|
||||
use Infinito\Entity\Source\AbstractSource;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class RequestedEntityServiceIntegrationTest extends KernelTestCase
|
||||
{
|
||||
/**
|
||||
* @var RequestedEntityServiceInterface
|
||||
*/
|
||||
private $requestedEntityService;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \PHPUnit\Framework\TestCase::setUp()
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->requestedEntityService = self::$container->get(RequestedEntityServiceInterface::class);
|
||||
}
|
||||
|
||||
public function testClassAccessors(): void
|
||||
{
|
||||
$class = AbstractSource::class;
|
||||
$this->assertNull($this->requestedEntityService->setClass($class));
|
||||
$this->assertEquals($class, $this->requestedEntityService->getClass());
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\Request\Right;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\Domain\Request\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());
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\Request\Right;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\DBAL\Types\Meta\Right\CRUDType;
|
||||
use Infinito\Domain\Request\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->setActionType($crud));
|
||||
$this->assertEquals($crud, $this->requestedUserService->getActionType());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user