Skip to content

Commit c25e40e

Browse files
committed
Supporting Laravel 5.5
1 parent aac9c8a commit c25e40e

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All notable changes to `pushmix/laravel-web-notification` will be documented in
1212

1313
## v1.1 - 2019-01-27
1414

15-
- applying scrutinizer sugestions
15+
- applying scrutinizer suggestions
1616
- adding CODE_OF_CONDUCT.md
1717
- adding CONTRIBUTING.md
1818
- adding LICENSE.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## ![Pushmix](https://www.pushmix.co.uk/media/favicons/favicon-32x32.png) Pushmix Notifications Driver for Laravel.
1+
## ![Pushmix](https://www.pushmix.co.uk/media/favicons/favicon-32x32.png) Pushmix Notifications Driver for Laravel 5.5.
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/pushmix/laravel-web-notification.svg)](https://packagist.org/packages/pushmix/laravel-web-notification)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
@@ -11,7 +11,7 @@
1111

1212
## About
1313

14-
This package makes it easy to send [Pushmix notifications](https://www.pushmix.co.uk/docs/laravel-package) with Laravel 5.3+.
14+
This package makes it easy to send [Pushmix notifications](https://www.pushmix.co.uk/docs/laravel-package) with Laravel 5.5.
1515

1616
## Contents
1717

src/js/pm_service_worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/ChannelTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
use Illuminate\Notifications\AnonymousNotifiable;
1010
use Pushmix\WebNotification\Exceptions\CouldNotSendNotification;
1111

12-
class ChannelTest extends TestCase
13-
{
12+
class ChannelTest extends TestCase{
13+
14+
protected $SUBSCRIPTION_ID = "SUBSCRIPTION_ID";
15+
1416
public function setUp()
1517
{
1618
parent::setUp();
@@ -19,7 +21,7 @@ public function setUp()
1921
protected function getEnvironmentSetUp($app)
2022
{
2123
//setup db config if needed
22-
$app['config']->set('pushmix.subscription_id', 'SUBSCRIPTION_ID');
24+
$app['config']->set('pushmix.subscription_id', $this->SUBSCRIPTION_ID);
2325
$app['config']->set('pushmix.api_url', 'https://www.pushmix.co.uk/api/notify');
2426
}
2527

tests/ClientTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class ClientTest extends TestCase
1212
{
1313
protected $client;
1414

15+
protected $SUBSCRIPTION_ID = "SUBSCRIPTION_ID";
16+
1517
public function setUp()
1618
{
1719
parent::setUp();
@@ -45,9 +47,9 @@ public function it_can_init_key()
4547
public function it_can_get_key()
4648
{
4749
$client = new PushmixClient();
48-
\Config::set('pushmix.subscription_id', 'SUBSCRIPTION_ID');
50+
\Config::set('pushmix.subscription_id', $this->SUBSCRIPTION_ID);
4951
$client->initKey();
50-
$this->assertSame('SUBSCRIPTION_ID', $client->getKey());
52+
$this->assertSame($this->SUBSCRIPTION_ID, $client->getKey());
5153
}
5254

5355
/***/
@@ -108,7 +110,7 @@ public function it_can_set_api_url()
108110
public function it_can_send_notification()
109111
{
110112
\Config::set('pushmix.api_url', 'https://www.pushmix.co.uk/api/notify');
111-
\Config::set('pushmix.subscription_id', 'SUBSCRIPTION_ID');
113+
\Config::set('pushmix.subscription_id', $this->SUBSCRIPTION_ID);
112114
$client = new PushmixClient();
113115
$client->initKey()->initApiUrl();
114116
$response = $client->sendNotification([
@@ -127,7 +129,7 @@ public function it_can_send_notification()
127129
public function it_can_send_notification_async()
128130
{
129131
\Config::set('pushmix.api_url', 'https://www.pushmix.co.uk/api/notify');
130-
\Config::set('pushmix.subscription_id', 'SUBSCRIPTION_ID');
132+
\Config::set('pushmix.subscription_id', $this->SUBSCRIPTION_ID);
131133
$client = new PushmixClient();
132134
$client->initKey()->initApiUrl();
133135
$client->async(true);

0 commit comments

Comments
 (0)