You are here

public function UrlGeneratorTest::testGetPathFromRouteWithSubdirectory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testGetPathFromRouteWithSubdirectory()

Tests URL generation in a subdirectory.

File

core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php, line 204
Contains \Drupal\Tests\Core\Routing\UrlGeneratorTest.

Class

UrlGeneratorTest
Confirm that the UrlGenerator is functioning properly.

Namespace

Drupal\Tests\Core\Routing

Code

public function testGetPathFromRouteWithSubdirectory() {
  $this->routeProcessorManager
    ->expects($this
    ->once())
    ->method('processOutbound');
  $path = $this->generator
    ->getPathFromRoute('test_1');
  $this
    ->assertEquals('test/one', $path);
}