public function SmsFrameworkProviderTest::testSendNoFallbackGateway in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkProviderTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProviderTest::testSendNoFallbackGateway()
- 2.1.x tests/src/Kernel/SmsFrameworkProviderTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProviderTest::testSendNoFallbackGateway()
Test message is not sent because no gateway is set.
@covers ::send
File
- tests/
src/ Kernel/ SmsFrameworkProviderTest.php, line 217
Class
- SmsFrameworkProviderTest
- Tests SMS Framework provider service.
Namespace
Drupal\Tests\sms\KernelCode
public function testSendNoFallbackGateway() {
$this
->setFallbackGateway(NULL);
$this
->setExpectedException(RecipientRouteException::class);
$message = $this
->createSmsMessage()
->addRecipients($this
->randomPhoneNumbers());
$this->smsProvider
->send($message);
}