You are here

public function SmsFrameworkPushedDeliveryReportTest::testDeliveryReportRouteNoSupportPush in SMS Framework 8

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

Code

public function testDeliveryReportRouteNoSupportPush() {
  $gateway = $this
    ->createMemoryGateway([
    'plugin' => 'capabilities_default',
  ]);
  $this
    ->setExpectedException(RouteNotFoundException::class);
  $route = 'sms.delivery_report.receive.' . $gateway
    ->id();
  $this->routeProvider
    ->getRouteByName($route);
}