Skip to content

Commit 7411350

Browse files
author
Lukas Kämmerling
authored
Merge pull request #51 from laravel-notification-channels/analysis-8P06k9
Apply fixes from StyleCI
2 parents bdc50ed + 1e2fe4d commit 7411350

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/ChannelTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public function it_can_send_a_notification_with_email()
141141
}
142142

143143
/** @test */
144-
public function it_can_send_a_notification_with_tags(){
144+
public function it_can_send_a_notification_with_tags()
145+
{
145146
$response = new Response(200);
146147

147148
$this->oneSignal->shouldReceive('sendNotificationCustom')
@@ -156,14 +157,15 @@ public function it_can_send_a_notification_with_tags(){
156157
'chrome_icon' => 'Icon',
157158
'adm_small_icon' => 'Icon',
158159
'small_icon' => 'Icon',
159-
'tags' => collect([["key" => "device_uuid", "relation" => "=", "value" => "123e4567-e89b-12d3-a456-426655440000"]]),
160+
'tags' => collect([['key' => 'device_uuid', 'relation' => '=', 'value' => '123e4567-e89b-12d3-a456-426655440000']]),
160161
])
161162
->andReturn($response);
162163

163164
$channel_response = $this->channel->send(new NotifiableTags(), new TestNotification());
164165

165166
$this->assertInstanceOf(ResponseInterface::class, $channel_response);
166167
}
168+
167169
/** @test */
168170
public function it_sends_nothing_and_returns_null_when_player_id_empty()
169171
{

tests/NotifiableTags.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class NotifiableTags
1111
*/
1212
public function routeNotificationForOneSignal()
1313
{
14-
return ['tags' => ["key" => "device_uuid", "relation" => "=", "value" => "123e4567-e89b-12d3-a456-426655440000"]];
14+
return ['tags' => ['key' => 'device_uuid', 'relation' => '=', 'value' => '123e4567-e89b-12d3-a456-426655440000']];
1515
}
1616
}

0 commit comments

Comments
 (0)