public function RouterTest::testDynamicRoutes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Routing/RouterTest.php \Drupal\system\Tests\Routing\RouterTest::testDynamicRoutes()
Checks that dynamically defined and altered routes work correctly.
See also
\Drupal\router_test\RouteSubscriber
File
- core/
modules/ system/ src/ Tests/ Routing/ RouterTest.php, line 168 - Contains \Drupal\system\Tests\Routing\RouterTest.
Class
- RouterTest
- Functional class for the full integrated routing system.
Namespace
Drupal\system\Tests\RoutingCode
public function testDynamicRoutes() {
// Test the altered route.
$this
->drupalGet('router_test/test6');
$this
->assertResponse(200);
$this
->assertRaw('test5', 'The correct string was returned because the route was successful.');
}