fix(notifications): hetzner deletion failure channel name

This commit is contained in:
peaklabs-dev 2026-09-05 12:32:25 +02:00
parent 27c7dc6a24
commit 5303ff1246
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -17,8 +17,7 @@ public function __construct(public int $hetznerServerId, public int $teamId, pub
public function via(object $notifiable): array
{
return $notifiable->getEnabledChannels('hetzner_deletion_failed');
return $notifiable->getEnabledChannels('hetzner_deletion_failure');
}
public function toMail(): MailMessage

View file

@ -19,7 +19,7 @@
->and($notification->errorMessage)->toBe('Hetzner API error: Server not found');
});
it('uses hetzner_deletion_failed event for channels', function () {
it('uses the always-send hetzner_deletion_failure event for channels', function () {
$notification = new HetznerDeletionFailed(
hetznerServerId: 12345,
teamId: 1,
@ -28,7 +28,7 @@
$mockNotifiable = Mockery::mock();
$mockNotifiable->shouldReceive('getEnabledChannels')
->with('hetzner_deletion_failed')
->with('hetzner_deletion_failure')
->once()
->andReturn([]);