File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,22 @@ public function it_will_fire_an_event_in_case_of_an_invalid_message()
110
110
111
111
$ this ->channel ->send ($ notifiable , $ notification );
112
112
}
113
+
114
+ /** @test */
115
+ public function it_will_send_using_alphanumeric_if_notifiable_can_receive ()
116
+ {
117
+ $ notifiable = new NotifiableWithAlphanumericSender ();
118
+ $ notification = Mockery::mock (Notification::class);
119
+
120
+ $ message = new TwilioSmsMessage ('Message text ' );
121
+ $ notification ->shouldReceive ('toTwilio ' )->andReturn ($ message );
122
+
123
+ $ this ->twilio ->shouldReceive ('sendMessage ' )
124
+ ->atLeast ()->once ()
125
+ ->with ($ message , '+33333333333 ' , true );
126
+
127
+ $ this ->channel ->send ($ notifiable , $ notification );
128
+ }
113
129
}
114
130
115
131
class Notifiable
You can’t perform that action at this time.
0 commit comments