function PathMatcherTest::testMatchPathNullFront
Tests matchPath when page.front is null.
File
-
core/
tests/ Drupal/ Tests/ Core/ Path/ PathMatcherTest.php, line 60
Class
Namespace
Drupal\Tests\Core\PathCode
public function testMatchPathNullFront() : void {
$config_factory_stub = $this->getConfigFactoryStub([
'system.site' => [
'page.front' => NULL,
],
]);
$route_match = $this->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
$pathMatcher = new PathMatcher($config_factory_stub, $route_match);
$this->assertTrue($pathMatcher->matchPath('/foo', '/*'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.