From effb1fc6da2f92f202ca2dbfa491e06fc8979dbf Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 16 Jan 2019 22:15:00 +0100 Subject: [PATCH] implemented RequestedUserRightFacadeService --- .../RequestedUserRightFacade.php | 2 +- .../RequestedUserRightFacadeService.php | 20 ++++++++++++++++ ...questedUserRightFacadeServiceInterface.php | 10 ++++++++ .../RequestedUserRightFacadeServiceTest.php | 23 +++++++++++++++++++ 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeService.php create mode 100644 application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeServiceInterface.php create mode 100644 application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightFacadeServiceTest.php diff --git a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php b/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php index 5bb822a..56a0c7a 100644 --- a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php +++ b/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php @@ -9,7 +9,7 @@ use App\Exception\SetNotPossibleException; /** * @author kevinfrantz */ -final class RequestedUserRightFacade implements RequestedUserRightFacadeInterface +class RequestedUserRightFacade implements RequestedUserRightFacadeInterface { /** * @var UserSourceDirectorInterface diff --git a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeService.php b/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeService.php new file mode 100644 index 0000000..b096d5e --- /dev/null +++ b/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeService.php @@ -0,0 +1,20 @@ +createMock(RequestedRightServiceInterface::class); + $userSourceDirectorService = $this->createMock(UserSourceDirectorServiceInterface::class); + $service = new RequestedUserRightFacadeService($userSourceDirectorService, $requestedRightService); + $this->assertInstanceOf(RequestedUserRightFacadeServiceInterface::class, $service); + } +}