public function SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkPushedDeliveryReportTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute()
- 2.1.x tests/src/Kernel/SmsFrameworkPushedDeliveryReportTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute()
Tests route exists for gateway with pushed reports.
File
- tests/
src/ Kernel/ SmsFrameworkPushedDeliveryReportTest.php, line 40
Class
- SmsFrameworkPushedDeliveryReportTest
- Tests pushing delivery reports to the site.
Namespace
Drupal\Tests\sms\KernelCode
public function testDeliveryReportRoute() {
$gateway = $this
->createMemoryGateway();
$name = 'sms.delivery_report.receive.' . $gateway
->id();
$route = $this->routeProvider
->getRouteByName($name);
$this
->assertEquals($gateway
->getPushReportPath(), $route
->getPath());
}