@@ -67,6 +67,10 @@ public function it_can_send_a_sms_message_to_twilio()
67
67
->once ()
68
68
->andReturn (null );
69
69
70
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
71
+ ->once ()
72
+ ->andReturn (false );
73
+
70
74
$ this ->config ->shouldReceive ('getServiceSid ' )
71
75
->once ()
72
76
->andReturn (null );
@@ -104,6 +108,10 @@ public function it_can_send_a_mms_message_to_twilio()
104
108
->once ()
105
109
->andReturn ('+1234567890 ' );
106
110
111
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
112
+ ->once ()
113
+ ->andReturn (false );
114
+
107
115
$ this ->config ->shouldReceive ('getServiceSid ' )
108
116
->once ()
109
117
->andReturn (null );
@@ -141,6 +149,10 @@ public function it_can_send_a_sms_message_to_twilio_with_alphanumeric_sender()
141
149
142
150
$ this ->config ->shouldNotReceive ('getFrom ' );
143
151
152
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
153
+ ->once ()
154
+ ->andReturn (false );
155
+
144
156
$ this ->config ->shouldReceive ('getServiceSid ' )
145
157
->once ()
146
158
->andReturn (null );
@@ -169,6 +181,10 @@ public function it_can_send_a_sms_message_to_twilio_with_messaging_service()
169
181
->once ()
170
182
->andReturn ('+1234567890 ' );
171
183
184
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
185
+ ->once ()
186
+ ->andReturn (false );
187
+
172
188
$ this ->config ->shouldReceive ('getServiceSid ' )
173
189
->once ()
174
190
->andReturn ('service_sid ' );
@@ -201,6 +217,10 @@ public function it_can_send_a_call_to_twilio()
201
217
$ message ->fallbackUrl ('http://example.com ' );
202
218
$ message ->fallbackMethod ('PUT ' );
203
219
220
+ $ this ->config ->shouldReceive ('getDebugTo ' )
221
+ ->once ()
222
+ ->andReturn ('+1111111111 ' );
223
+
204
224
$ this ->twilioService ->calls ->shouldReceive ('create ' )
205
225
->atLeast ()->once ()
206
226
->with ('+1111111111 ' , '+2222222222 ' , [
@@ -233,6 +253,10 @@ public function it_will_throw_an_exception_in_case_of_a_missing_from_number()
233
253
->once ()
234
254
->andReturn (null );
235
255
256
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
257
+ ->once ()
258
+ ->andReturn (false );
259
+
236
260
$ this ->config ->shouldReceive ('getServiceSid ' )
237
261
->once ()
238
262
->andReturn (null );
@@ -270,6 +294,10 @@ public function it_should_use_universal_to()
270
294
->once ()
271
295
->andReturn ($ debugTo );
272
296
297
+ $ this ->config ->shouldReceive ('isShortenUrlsEnabled ' )
298
+ ->once ()
299
+ ->andReturn (false );
300
+
273
301
$ this ->config ->shouldReceive ('getServiceSid ' )
274
302
->once ()
275
303
->andReturn (null );
0 commit comments