diff --git a/application/symfony/src/Domain/SecureManagement/SecureEntityChecker.php b/application/symfony/src/Domain/SecureManagement/SecureRequestedRightChecker.php similarity index 91% rename from application/symfony/src/Domain/SecureManagement/SecureEntityChecker.php rename to application/symfony/src/Domain/SecureManagement/SecureRequestedRightChecker.php index df3eec5..fddc482 100644 --- a/application/symfony/src/Domain/SecureManagement/SecureEntityChecker.php +++ b/application/symfony/src/Domain/SecureManagement/SecureRequestedRightChecker.php @@ -9,7 +9,7 @@ use App\Domain\RightManagement\RightTransformerServiceInterface; /** * @author kevinfrantz */ -final class SecureEntityChecker implements SecureEntityCheckerInterface +final class SecureRequestedRightChecker implements SecureRequestedRightCheckerInterface { /** * @var RightTransformerServiceInterface diff --git a/application/symfony/src/Domain/SecureManagement/SecureEntityCheckerInterface.php b/application/symfony/src/Domain/SecureManagement/SecureRequestedRightCheckerInterface.php similarity index 89% rename from application/symfony/src/Domain/SecureManagement/SecureEntityCheckerInterface.php rename to application/symfony/src/Domain/SecureManagement/SecureRequestedRightCheckerInterface.php index cce5f19..06b0c3d 100644 --- a/application/symfony/src/Domain/SecureManagement/SecureEntityCheckerInterface.php +++ b/application/symfony/src/Domain/SecureManagement/SecureRequestedRightCheckerInterface.php @@ -9,7 +9,7 @@ use App\Domain\RequestManagement\Right\RequestedRightInterface; * * @author kevinfrantz */ -interface SecureEntityCheckerInterface +interface SecureRequestedRightCheckerInterface { /** * @param RequestedRightInterface $requestedRight diff --git a/application/symfony/tests/Unit/Domain/SecureManagement/SecureEntityCheckerTest.php b/application/symfony/tests/Unit/Domain/SecureManagement/SecureRequestedRightCheckerTest.php similarity index 88% rename from application/symfony/tests/Unit/Domain/SecureManagement/SecureEntityCheckerTest.php rename to application/symfony/tests/Unit/Domain/SecureManagement/SecureRequestedRightCheckerTest.php index dcf7cc2..9034a01 100644 --- a/application/symfony/tests/Unit/Domain/SecureManagement/SecureEntityCheckerTest.php +++ b/application/symfony/tests/Unit/Domain/SecureManagement/SecureRequestedRightCheckerTest.php @@ -9,10 +9,13 @@ use App\DBAL\Types\Meta\Right\CRUDType; use App\Entity\Meta\Right; use App\Domain\RequestManagement\Right\RequestedRight; use App\Domain\RequestManagement\Entity\RequestedEntityInterface; -use App\Domain\SecureManagement\SecureEntityChecker; +use App\Domain\SecureManagement\SecureRequestedRightChecker; use App\Domain\RightManagement\RightTransformerService; -class SecureEntityCheckerTest extends TestCase +/** + * @author kevinfrantz + */ +class SecureRequestedRightCheckerTest extends TestCase { public function testGranted(): void { @@ -37,7 +40,7 @@ class SecureEntityCheckerTest extends TestCase $requestedEntity->method('getEntity')->willReturn($source); $requestedRight->setRequestedEntity($requestedEntity); $rightTransformerService = new RightTransformerService(); - $secureEntityChecker = new SecureEntityChecker($rightTransformerService); + $secureEntityChecker = new SecureRequestedRightChecker($rightTransformerService); $result = $secureEntityChecker->check($requestedRight); $this->assertTrue($result); } @@ -65,7 +68,7 @@ class SecureEntityCheckerTest extends TestCase $requestedEntity->method('getEntity')->willReturn($source); $requestedRight->setRequestedEntity($requestedEntity); $rightTransformerService = new RightTransformerService(); - $secureEntityChecker = new SecureEntityChecker($rightTransformerService); + $secureEntityChecker = new SecureRequestedRightChecker($rightTransformerService); $result = $secureEntityChecker->check($requestedRight); $this->assertFalse($result); }