You are here

public function SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/SmsFrameworkPushedDeliveryReportTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute()
  2. 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\Kernel

Code

public function testDeliveryReportRoute() {
  $gateway = $this
    ->createMemoryGateway();
  $name = 'sms.delivery_report.receive.' . $gateway
    ->id();
  $route = $this->routeProvider
    ->getRouteByName($name);
  $this
    ->assertEquals($gateway
    ->getPushReportPath(), $route
    ->getPath());
}