Skip to content

Commit

Permalink
Fix a typo and update corresponding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Jul 17, 2023
1 parent 34f7c70 commit 179c267
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 179c267

Please sign in to comment.