diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-16 12:08:49 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-16 12:08:49 +0100 |
commit | d9d2ca67b4feb3f550a432051606fe0df2c3680f (patch) | |
tree | 77fafbdf05e7608b98a66f9528b406b2ee0329ec /t/Mock | |
parent | 69cd91b70b488ebba89558cbc41d2472ecbbec5a (diff) | |
parent | 8a3072bfdc11121da5a11932c248ab13f6f0d315 (diff) |
Merge branch 'sms-mssid-error'
Diffstat (limited to 't/Mock')
-rw-r--r-- | t/Mock/Twilio.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/Mock/Twilio.pm b/t/Mock/Twilio.pm index eaad30b76..125daa55f 100644 --- a/t/Mock/Twilio.pm +++ b/t/Mock/Twilio.pm @@ -20,6 +20,10 @@ sub dispatch_request { sub (POST + /2010-04-01/Accounts/*/Messages.json + %*) { my ($self, $sid, $data) = @_; + if ($data->{To} eq '+18165550101') { + return [ 400, [ 'Content-Type' => 'application/json' ], + [ '{"code":"21408", "message": "Unable to send"}' ] ]; + } push @{$self->texts}, $data; return [ 200, [ 'Content-Type' => 'application/json' ], [ '{}' ] ]; }, |