Skip to content

Commit

Permalink
Add support for Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Jan 15, 2022
1 parent c2126ca commit 9b64c1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.4.0 (2022-??-??)

- Added support for Laravel 9

## 1.3.0 (2020-11-09)

- Drop support for Laravel 6.17 and earlier
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"keywords": ["laravel", "twilio"],
"require": {
"php": "^7.2 || ^8.0",
"illuminate/support": "^6.18 || ^8.0",
"illuminate/support": "^6.18 || ^8.0 || ^9.0",
"twilio/sdk": "^6.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"laravel/framework": "^6.18 || ^8.0",
"orchestra/testbench": "^4.0 || ^6.0",
"laravel/framework": "^6.18 || ^8.0 || ^9.0",
"orchestra/testbench": "^4.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^8.5 || ^9.3"
},
"suggest": {
Expand Down
28 changes: 0 additions & 28 deletions tests/Notifications/Channels/TwilioChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,6 @@ public function toTwilio($notifiable)
$this->assertInstanceOf(MessageInstance::class, (new TwilioChannel($twilio))->send($notifiable, $notification));
}

public function testANotificationIsNotSentWhenTheNotifiableDoesNotRouteToIt(): void
{
/** @var TwilioClient|MockObject $twilio */
$twilio = $this->createMock(TwilioClient::class);
$twilio->expects($this->never())
->method('message');

$notifiable = new class()
{
use Notifiable;

public function via($notifiable)
{
return [];
}
};

$notification = new class() extends Notification
{
public function toTwilio($notifiable)
{
return 'This is a test';
}
};

$this->assertNull((new TwilioChannel($twilio))->send($notifiable, $notification));
}

public function testANotificationIsNotSentWhenTheNotifiableDoesNotProvideARecipient(): void
{
/** @var TwilioClient|MockObject $twilio */
Expand Down

0 comments on commit 9b64c1e

Please sign in to comment.