public function RouterTest::testCanRoute

Confirms that the router can get to a controller.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Routing/RouterTest.php, line 35
Definition of Drupal\system\Tests\Routing\RouterTest.

Class

RouterTest
Functional class for the full integrated routing system.

Namespace

Drupal\system\Tests\Routing

Code

public function testCanRoute() {
  $this
    ->drupalGet('router_test/test1');
  $this
    ->assertRaw('test1', 'The correct string was returned because the route was successful.');
}