Skip to content

Commit

Permalink
Merge pull request #45 from Braunson/2.0
Browse files Browse the repository at this point in the history
Fixed client-ref key
  • Loading branch information
taylorotwell authored Dec 21, 2020
2 parents 11ff3fc + c780a55 commit a25e56e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Channels/NexmoSmsChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function send($notifiable, Notification $notification)
'from' => $message->from ?: $this->from,
'to' => $to,
'text' => trim($message->content),
'client_ref' => $message->clientReference,
'client-ref' => $message->clientReference,
];

if ($message->statusCallback) {
Expand Down
14 changes: 7 additions & 7 deletions tests/Channels/NexmoSmsChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function testSmsIsSentViaNexmo()
'from' => '4444444444',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '',
'client-ref' => '',
])
->once();

Expand All @@ -43,7 +43,7 @@ public function testSmsIsSentViaNexmoWithCustomClient()
'from' => '4444444444',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '',
'client-ref' => '',
])
->once();

Expand Down Expand Up @@ -74,7 +74,7 @@ public function testSmsIsSentViaNexmoWithCustomFrom()
'from' => '5554443333',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '',
'client-ref' => '',
])
->once();

Expand All @@ -90,7 +90,7 @@ public function testSmsIsSentViaNexmoWithCustomFromAndClient()
'from' => '5554443333',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '',
'client-ref' => '',
])
->once();

Expand Down Expand Up @@ -121,7 +121,7 @@ public function testSmsIsSentViaNexmoWithCustomFromAndClientRef()
'from' => '5554443333',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '11',
'client-ref' => '11',
])
->once();

Expand All @@ -137,7 +137,7 @@ public function testSmsIsSentViaNexmoWithCustomClientFromAndClientRef()
'from' => '5554443333',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '11',
'client-ref' => '11',
])
->once();

Expand Down Expand Up @@ -168,7 +168,7 @@ public function testCallbackIsApplied()
'from' => '4444444444',
'to' => '5555555555',
'text' => 'this is my message',
'client_ref' => '',
'client-ref' => '',
'callback' => 'https://example.com',
])
->once();
Expand Down

0 comments on commit a25e56e

Please sign in to comment.