Wrapped provider::send()/provider::queue() with try/catch.
Error handling
Throw an exception if no gateway is set. This same exception is being implemented in https://github.com/dpi/smsframework/pull/37 when no gateway is found.
Log message to site log/use drupal_set_message if no gateway found. Tests for these failure states added.
API improvement
Improved API and testing for get/set default gateway on provider. Before this patch, getGateway is failing on gateway load because SmsGateway::load() cannot handle NULL.
Tests
Half of this patch is testing, and there is a refactoring of SmsFrameworkSettingsTest single test into multiple tests.
Comments
Comment #2
dpihttps://github.com/dpi/smsframework/pull/39
Comment #4
dpi