Skip to content

Commit

Permalink
Allow Laravel 7 and test on PHP 7.4 (#113)
Browse files Browse the repository at this point in the history
* Allow Laravel 7

* Test on PHP 7.4

* Update mockery because of compatibility problems with PH 7.4

* Apply fixes from StyleCI (#114)
  • Loading branch information
LKaemmerling authored Mar 5, 2020
1 parent 5220ad2 commit 9ae71fd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- 7.2
- 7.3
- 7.4

env:
matrix:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"require": {
"php": "^7.2.0",
"berkayk/onesignal-laravel": "^1.0.0",
"illuminate/notifications": "5.*|^6.0",
"illuminate/support": "5.*|^6.0"
"illuminate/notifications": "5.*|^6.0|^7.0",
"illuminate/support": "5.*|^6.0|^7.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": "^4.0",
"mockery/mockery": "^1.3",
"orchestra/testbench": "^4.0|^5.0",
"phpunit/phpunit": "^8.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/OneSignalChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace NotificationChannels\OneSignal;

use Berkayk\OneSignal\OneSignalClient;
use Psr\Http\Message\ResponseInterface;
use Illuminate\Notifications\Notification;
use NotificationChannels\OneSignal\Exceptions\CouldNotSendNotification;
use Psr\Http\Message\ResponseInterface;

class OneSignalChannel
{
Expand Down
8 changes: 4 additions & 4 deletions src/OneSignalMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace NotificationChannels\OneSignal;

use Illuminate\Support\Arr;
use NotificationChannels\OneSignal\Traits\Deprecated;
use NotificationChannels\OneSignal\Traits\Categories\AppearanceHelpers;
use NotificationChannels\OneSignal\Traits\Categories\AttachmentHelpers;
use NotificationChannels\OneSignal\Traits\Categories\ButtonHelpers;
use NotificationChannels\OneSignal\Traits\Categories\SilentHelpers;
use NotificationChannels\OneSignal\Traits\Categories\DeliveryHelpers;
use NotificationChannels\OneSignal\Traits\Categories\GroupingHelpers;
use NotificationChannels\OneSignal\Traits\Categories\AppearanceHelpers;
use NotificationChannels\OneSignal\Traits\Categories\AttachmentHelpers;
use NotificationChannels\OneSignal\Traits\Categories\SilentHelpers;
use NotificationChannels\OneSignal\Traits\Deprecated;

class OneSignalMessage
{
Expand Down
8 changes: 4 additions & 4 deletions tests/ChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace NotificationChannels\OneSignal\Test;

use Mockery;
use Berkayk\OneSignal\OneSignalClient;
use GuzzleHttp\Psr7\Response;
use Mockery;
use NotificationChannels\OneSignal\Exceptions\CouldNotSendNotification;
use NotificationChannels\OneSignal\OneSignalChannel;
use Orchestra\Testbench\TestCase;
use Berkayk\OneSignal\OneSignalClient;
use Psr\Http\Message\ResponseInterface;
use NotificationChannels\OneSignal\OneSignalChannel;
use NotificationChannels\OneSignal\Exceptions\CouldNotSendNotification;

class ChannelTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/NotifiableMultipleTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class NotifiableMultipleTags
public function routeNotificationForOneSignal()
{
return ['tags' => [
['key' => 'device_uuid', 'relation' => '=', 'value' => '123e4567-e89b-12d3-a456-426655440000'],
['key' => 'role', 'relation' => '=', 'value' => 'admin'],
],
['key' => 'device_uuid', 'relation' => '=', 'value' => '123e4567-e89b-12d3-a456-426655440000'],
['key' => 'role', 'relation' => '=', 'value' => 'admin'],
],
];
}
}

0 comments on commit 9ae71fd

Please sign in to comment.