From 179c2672fbc1e015074e88f96bc0e4066bd96fea Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Mon, 17 Jul 2023 13:39:17 +0200 Subject: [PATCH] Fix a typo and update corresponding tests --- .../Entity/DeletePublishedProductionEntityCommandHandler.php | 2 +- .../Entity/DeletePublishedTestEntityCommandHandler.php | 2 +- .../DeletePublishedProductionEntityCommandHandlerTest.php | 2 +- .../Entity/DeletePublishedTestEntityCommandHandlerTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandler.php b/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandler.php index 2a8257622..d9c1b13e5 100644 --- a/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandler.php +++ b/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandler.php @@ -59,7 +59,7 @@ public function handle(DeletePublishedProductionEntityCommand $command) } if ($response !== DeleteManageEntityRepository::RESULT_SUCCESS) { - throw new EntityNotDeletedException('Deleting the entity yielded an non success response'); + throw new EntityNotDeletedException('Deleting the entity yielded a non success response'); } } } diff --git a/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandler.php b/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandler.php index 59f2c6ea8..7f2d212d5 100644 --- a/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandler.php +++ b/src/Surfnet/ServiceProviderDashboard/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandler.php @@ -56,7 +56,7 @@ public function handle(DeletePublishedTestEntityCommand $command) } if ($response !== DeleteManageEntityRepository::RESULT_SUCCESS) { - throw new EntityNotDeletedException('Deleting the entity yielded an non success response'); + throw new EntityNotDeletedException('Deleting the entity yielded a non success response'); } } } diff --git a/tests/integration/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandlerTest.php b/tests/integration/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandlerTest.php index c406d1f81..81d953dfd 100644 --- a/tests/integration/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandlerTest.php +++ b/tests/integration/Application/CommandHandler/Entity/DeletePublishedProductionEntityCommandHandlerTest.php @@ -92,7 +92,7 @@ public function test_it_handles_non_error_responses() $this->logger ->shouldReceive('info'); - $this->expectExceptionMessage("Deleting the entity yielded an non success response"); + $this->expectExceptionMessage("Deleting the entity yielded a non success response"); $this->expectException(EntityNotDeletedException::class); $this->commandHandler->handle($command); } diff --git a/tests/integration/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandlerTest.php b/tests/integration/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandlerTest.php index 90c6a6090..4493150f0 100644 --- a/tests/integration/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandlerTest.php +++ b/tests/integration/Application/CommandHandler/Entity/DeletePublishedTestEntityCommandHandlerTest.php @@ -88,7 +88,7 @@ public function test_it_handles_non_error_responses() $this->logger ->shouldReceive('info'); - $this->expectExceptionMessage("Deleting the entity yielded an non success response"); + $this->expectExceptionMessage("Deleting the entity yielded a non success response"); $this->expectException( \Surfnet\ServiceProviderDashboard\Application\Exception\EntityNotDeletedException::class );