You are here

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

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

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
    ->expectException(RouteNotFoundException::class);
  $route = 'sms.delivery_report.receive.' . $gateway
    ->id();
  $this->routeProvider
    ->getRouteByName($route);
}