mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 06:27:24 +01:00
implemented RequestedUserRightFacadeService
This commit is contained in:
parent
1651ff95f7
commit
effb1fc6da
@ -9,7 +9,7 @@ use App\Exception\SetNotPossibleException;
|
|||||||
/**
|
/**
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
*/
|
*/
|
||||||
final class RequestedUserRightFacade implements RequestedUserRightFacadeInterface
|
class RequestedUserRightFacade implements RequestedUserRightFacadeInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var UserSourceDirectorInterface
|
* @var UserSourceDirectorInterface
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Domain\RequestManagement;
|
||||||
|
|
||||||
|
use App\Domain\UserManagement\UserSourceDirectorServiceInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author kevinfrantz
|
||||||
|
*/
|
||||||
|
final class RequestedUserRightFacadeService extends RequestedUserRightFacade implements RequestedUserRightFacadeServiceInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @param UserSourceDirectorServiceInterface $userSourceDirectorService
|
||||||
|
* @param RequestedRightServiceInterface $requestedRightService
|
||||||
|
*/
|
||||||
|
public function __construct(UserSourceDirectorServiceInterface $userSourceDirectorService, RequestedRightServiceInterface $requestedRightService)
|
||||||
|
{
|
||||||
|
parent::__construct($userSourceDirectorService, $requestedRightService);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Domain\RequestManagement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author kevinfrantz
|
||||||
|
*/
|
||||||
|
interface RequestedUserRightFacadeServiceInterface extends RequestedUserRightFacadeInterface
|
||||||
|
{
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace tests\Unit\Domain\RequestManagement;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use App\Domain\RequestManagement\RequestedUserRightFacadeService;
|
||||||
|
use App\Domain\UserManagement\UserSourceDirectorServiceInterface;
|
||||||
|
use App\Domain\RequestManagement\RequestedUserRightFacadeServiceInterface;
|
||||||
|
use App\Domain\RequestManagement\RequestedRightServiceInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author kevinfrantz
|
||||||
|
*/
|
||||||
|
class RequestedUserRightFacadeServiceTest extends TestCase
|
||||||
|
{
|
||||||
|
public function testConstructorSet(): void
|
||||||
|
{
|
||||||
|
$requestedRightService = $this->createMock(RequestedRightServiceInterface::class);
|
||||||
|
$userSourceDirectorService = $this->createMock(UserSourceDirectorServiceInterface::class);
|
||||||
|
$service = new RequestedUserRightFacadeService($userSourceDirectorService, $requestedRightService);
|
||||||
|
$this->assertInstanceOf(RequestedUserRightFacadeServiceInterface::class, $service);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user