Skip to content

Commit 722deab

Browse files
committed
Adjust tests for removed device field
1 parent 9d6bb7e commit 722deab

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/PushoverChannelTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ public function it_can_send_a_message_to_pushover(): void
4747
{
4848
$notifiable = new Notifiable;
4949

50-
$this->notification->shouldReceive('toPushover')
50+
$this->notification
51+
->shouldReceive('toPushover')
5152
->with($notifiable)
5253
->andReturn($this->message);
5354

54-
$this->pushover->shouldReceive('send')
55+
$this->pushover
56+
->shouldReceive('send')
5557
->with(Mockery::subset([
5658
'user' => 'pushover-key-30characters-long',
57-
'device' => '',
5859
]), $notifiable)
5960
->once();
6061

@@ -66,11 +67,13 @@ public function it_can_send_a_message_to_pushover_using_a_pushover_receiver(): v
6667
{
6768
$notifiable = new NotifiableWithPushoverReceiver;
6869

69-
$this->notification->shouldReceive('toPushover')
70+
$this->notification
71+
->shouldReceive('toPushover')
7072
->with($notifiable)
7173
->andReturn($this->message);
7274

73-
$this->pushover->shouldReceive('send')
75+
$this->pushover
76+
->shouldReceive('send')
7477
->with(Mockery::subset([
7578
'user' => 'pushover-key-30characters-long',
7679
'device' => 'iphone,desktop',

0 commit comments

Comments
 (0)