File tree Expand file tree Collapse file tree 4 files changed +18
-13
lines changed
Expand file tree Collapse file tree 4 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 5.6
54 - 7.0
65 - 7.1
76
Original file line number Diff line number Diff line change 33 "description" : " OneSignal Notifications driver" ,
44 "homepage" : " https://github.com/laravel-notification-channels/onesignal" ,
55 "license" : " MIT" ,
6- "authors" : [
7- {
6+ "authors" : [{
87 "name" : " Marcel Pociot" ,
98109 "homepage" : " http://marcelpociot.com"
1817 "require" : {
1918 "php" : " >=5.6.4" ,
2019 "berkayk/onesignal-laravel" : " ^0.9.3" ,
21- "illuminate/notifications" : " 5.3.*|5.4. *" ,
22- "illuminate/support" : " 5.1.*|5.2.*|5.3.*|5.4. *"
20+ "illuminate/notifications" : " 5.*" ,
21+ "illuminate/support" : " 5.*"
2322 },
2423 "require-dev" : {
25- "mockery/mockery" : " ^0.9.5 " ,
26- "orchestra/testbench" : " 3.3.x-dev " ,
27- "orchestra/database " : " 3.3.x-dev "
24+ "mockery/mockery" : " ^1.0 " ,
25+ "orchestra/testbench" : " ^3.5 " ,
26+ "phpunit/phpunit " : " ^6.4 "
2827 },
2928 "autoload" : {
3029 "psr-4" : {
3938 "scripts" : {
4039 "test" : " vendor/bin/phpunit"
4140 },
41+ "extra" : {
42+ "laravel" : {
43+ "providers" : [
44+ " NotificationChannels\\ OneSignal\\ OneSignalServiceProvider"
45+ ]
46+ }
47+ },
4248 "config" : {
4349 "sort-packages" : true
4450 }
Original file line number Diff line number Diff line change 22
33namespace NotificationChannels \OneSignal \Test ;
44
5- use GuzzleHttp \Psr7 \Response ;
65use Mockery ;
6+ use GuzzleHttp \Psr7 \Response ;
7+ use Orchestra \Testbench \TestCase ;
78use Berkayk \OneSignal \OneSignalClient ;
8- use NotificationChannels \OneSignal \Exceptions \CouldNotSendNotification ;
99use NotificationChannels \OneSignal \OneSignalChannel ;
10- use Orchestra \ Testbench \ TestCase ;
10+ use NotificationChannels \ OneSignal \ Exceptions \ CouldNotSendNotification ;
1111
1212class ChannelTest extends TestCase
1313{
@@ -76,7 +76,7 @@ public function it_throws_an_exception_when_it_could_not_send_the_notification()
7676 ])
7777 ->andReturn ($ response );
7878
79- $ this ->setExpectedException (CouldNotSendNotification::class);
79+ $ this ->expectException (CouldNotSendNotification::class);
8080
8181 $ this ->channel ->send (new Notifiable (), new TestNotification ());
8282 }
Original file line number Diff line number Diff line change 77use NotificationChannels \OneSignal \OneSignalMessage ;
88use NotificationChannels \OneSignal \OneSignalWebButton ;
99
10- class MessageTest extends \PHPUnit_Framework_TestCase
10+ class MessageTest extends \PHPUnit \ Framework \TestCase
1111{
1212 /** @var \NotificationChannels\OneSignal\OneSignalMessage */
1313 protected $ message ;
You can’t perform that action at this time.
0 commit comments