function UrlGeneratorTest::testGetPathFromRouteWithSubdirectory
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testGetPathFromRouteWithSubdirectory()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php \Drupal\Tests\Core\Routing\UrlGeneratorTest::testGetPathFromRouteWithSubdirectory()
- 11.x 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 312
Class
- UrlGeneratorTest
- Confirm that the UrlGenerator is functioning properly.
Namespace
Drupal\Tests\Core\RoutingCode
public function testGetPathFromRouteWithSubdirectory() : void {
$this->routeProcessorManager
->expects($this->once())
->method('processOutbound');
$path = $this->generator
->getPathFromRoute('test_1');
$this->assertEquals('test/one', $path);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.