public function UrlGeneratorTest::testGetPathFromRouteTrailing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testGetPathFromRouteTrailing()
Tests URL generation from route with trailing start and end slashes.
File
- core/tests/ Drupal/ Tests/ Core/ Routing/ UrlGeneratorTest.php, line 286 
- Contains \Drupal\Tests\Core\Routing\UrlGeneratorTest.
Class
- UrlGeneratorTest
- Confirm that the UrlGenerator is functioning properly.
Namespace
Drupal\Tests\Core\RoutingCode
public function testGetPathFromRouteTrailing() {
  $this->routeProcessorManager
    ->expects($this
    ->once())
    ->method('processOutbound');
  $path = $this->generator
    ->getPathFromRoute('test_3');
  $this
    ->assertEquals($path, 'test/two');
}