diff --git a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php b/application/symfony/src/Domain/RequestManagement/RequestedUserRight.php similarity index 97% rename from application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php rename to application/symfony/src/Domain/RequestManagement/RequestedUserRight.php index 56a0c7a..9fadb69 100644 --- a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacade.php +++ b/application/symfony/src/Domain/RequestManagement/RequestedUserRight.php @@ -9,7 +9,7 @@ use App\Exception\SetNotPossibleException; /** * @author kevinfrantz */ -class RequestedUserRightFacade implements RequestedUserRightFacadeInterface +class RequestedUserRight implements RequestedUserRightInterface { /** * @var UserSourceDirectorInterface diff --git a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeServiceInterface.php b/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeServiceInterface.php deleted file mode 100644 index 0dd97c9..0000000 --- a/application/symfony/src/Domain/RequestManagement/RequestedUserRightFacadeServiceInterface.php +++ /dev/null @@ -1,10 +0,0 @@ -createMock(RequestedRightServiceInterface::class); $userSourceDirectorService = $this->createMock(UserSourceDirectorServiceInterface::class); - $service = new RequestedUserRightFacadeService($userSourceDirectorService, $requestedRightService); - $this->assertInstanceOf(RequestedUserRightFacadeServiceInterface::class, $service); + $service = new RequestedUserRightService($userSourceDirectorService, $requestedRightService); + $this->assertInstanceOf(RequestedUserRightServiceInterface::class, $service); } } diff --git a/application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightFacadeTest.php b/application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightTest.php similarity index 87% rename from application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightFacadeTest.php rename to application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightTest.php index 2966245..2f2c6d2 100644 --- a/application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightFacadeTest.php +++ b/application/symfony/tests/Unit/Domain/RequestManagement/RequestedUserRightTest.php @@ -4,7 +4,7 @@ namespace tests\Unit\Domain\RightManagement; use PHPUnit\Framework\TestCase; use App\Entity\User; -use App\Domain\RequestManagement\RequestedUserRightFacade; +use App\Domain\RequestManagement\RequestedUserRight; use App\DBAL\Types\Meta\Right\LayerType; use App\DBAL\Types\Meta\Right\CRUDType; use App\Entity\Source\AbstractSource; @@ -21,13 +21,13 @@ use App\Exception\SetNotPossibleException; /** * @author kevinfrantz */ -class RequestedUserRightFacadeTest extends TestCase +class RequestedUserRightTest extends TestCase { public function testInterface(): void { $userSourceDirector = $this->createMock(UserSourceDirectorInterface::class); $requestedRight = $this->createMock(RequestedRightInterface::class); - $requestedUserRightFacade = new RequestedUserRightFacade($userSourceDirector, $requestedRight); + $requestedUserRightFacade = new RequestedUserRight($userSourceDirector, $requestedRight); $this->assertInstanceOf(RequestedRightInterface::class, $requestedUserRightFacade); } @@ -46,7 +46,7 @@ class RequestedUserRightFacadeTest extends TestCase $requestedRight->method('getLayer')->willReturn($layer); $requestedRight->method('getCrud')->willReturn($type); $requestedRight->method('getSource')->willReturn($source); - $requestedUserRightFacade = new RequestedUserRightFacade($userSourceDirector, $requestedRight); + $requestedUserRightFacade = new RequestedUserRight($userSourceDirector, $requestedRight); $this->assertEquals($layer, $requestedUserRightFacade->getLayer()); $this->assertEquals($type, $requestedUserRightFacade->getCrud()); $this->assertEquals($source, $requestedUserRightFacade->getSource()); @@ -64,7 +64,7 @@ class RequestedUserRightFacadeTest extends TestCase $requestedRight = new RequestedRight($sourceRepository); $user = $this->createMock(User::class); $userSourceDirector = new UserSourceDirector($sourceRepository, $user); - $requestedUserRightFacade = new RequestedUserRightFacade($userSourceDirector, $requestedRight); + $requestedUserRightFacade = new RequestedUserRight($userSourceDirector, $requestedRight); $this->assertNull($requestedUserRightFacade->setLayer($layer)); $this->assertNull($requestedUserRightFacade->setCrud($type)); $this->assertNull($requestedUserRightFacade->setRequestedSource($requestedSource)); @@ -79,7 +79,7 @@ class RequestedUserRightFacadeTest extends TestCase $reciever = $this->createMock(AbstractSource::class); $userSourceDirector = $this->createMock(UserSourceDirectorInterface::class); $requestedRight = $this->createMock(RequestedRightInterface::class); - $requestedUserRightFacade = new RequestedUserRightFacade($userSourceDirector, $requestedRight); + $requestedUserRightFacade = new RequestedUserRight($userSourceDirector, $requestedRight); $this->expectException(SetNotPossibleException::class); $requestedUserRightFacade->setReciever($reciever); }