fix(notifications): hetzner deletion failure channel name
This commit is contained in:
parent
27c7dc6a24
commit
5303ff1246
2 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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([]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue