Skip to content

Commit d4eae96

Browse files
committed
Adjust tests for callback parameter
1 parent eeb0752 commit d4eae96

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Pushover.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public function send(array $params, mixed $notifiable): ResponseInterface
8484
}
8585
}
8686

87-
//dd($multipart);
8887
return $this->http->post(
8988
$this->pushoverApiUrl,
9089
[

tests/IntegrationTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public function it_can_send_a_pushover_notification_with_a_global_token(): void
5656
'expire' => 600,
5757
'html' => false,
5858
'monospace' => false,
59+
'callback' => null,
5960
'user' => 'pushover-key-30characters-long',
6061
'device' => 'iphone,desktop',
6162
]);
@@ -93,6 +94,7 @@ public function it_can_send_a_pushover_notification_with_an_overridden_token():
9394
'expire' => 600,
9495
'html' => true,
9596
'monospace' => false,
97+
'callback' => null,
9698
'user' => 'pushover-key-30characters-long',
9799
'device' => 'iphone,desktop',
98100
]);
@@ -109,7 +111,7 @@ public function it_can_send_a_pushover_notification_with_an_overridden_token():
109111
protected function requestWillBeSentToPushoverWith($params): void
110112
{
111113
$multipartData = array_map(
112-
fn ($key, $value) => ['name' => $key, 'contents' => $value],
114+
fn($key, $value) => ['name' => $key, 'contents' => $value],
113115
array_keys($params),
114116
array_values($params)
115117
);

0 commit comments

Comments
 (0)