public function SmsFrameworkIncomingRouteTest::testIncomingRoute in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkIncomingRouteTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkIncomingRouteTest::testIncomingRoute()
- 2.1.x tests/src/Kernel/SmsFrameworkIncomingRouteTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkIncomingRouteTest::testIncomingRoute()
Tests route exists for gateway with incoming route annotation.
File
- tests/
src/ Kernel/ SmsFrameworkIncomingRouteTest.php, line 57
Class
- SmsFrameworkIncomingRouteTest
- Tests incoming routes for gateway plugins.
Namespace
Drupal\Tests\sms\KernelCode
public function testIncomingRoute() {
$incoming_gateway = $this
->createMemoryGateway([
'plugin' => 'incoming',
]);
$name = 'sms.incoming.receive.' . $incoming_gateway
->id();
$route = $this->routeProvider
->getRouteByName($name);
$this
->assertEquals($incoming_gateway
->getPushIncomingPath(), $route
->getPath());
}