public function SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRouteNoSupportPush in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkPushedDeliveryReportTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRouteNoSupportPush()
- 2.1.x tests/src/Kernel/SmsFrameworkPushedDeliveryReportTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRouteNoSupportPush()
Tests route access delivery report URL for gateway without pushed reports.
File
- tests/
src/ Kernel/ SmsFrameworkPushedDeliveryReportTest.php, line 53
Class
- SmsFrameworkPushedDeliveryReportTest
- Tests pushing delivery reports to the site.
Namespace
Drupal\Tests\sms\KernelCode
public function testDeliveryReportRouteNoSupportPush() {
$gateway = $this
->createMemoryGateway([
'plugin' => 'capabilities_default',
]);
$this
->setExpectedException(RouteNotFoundException::class);
$route = 'sms.delivery_report.receive.' . $gateway
->id();
$this->routeProvider
->getRouteByName($route);
}