You are here

public function SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRoute in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 42

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());
}