protected function PathMatcherTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Path/PathMatcherTest.php \Drupal\Tests\Core\Path\PathMatcherTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Path/ PathMatcherTest.php, line 24
Class
- PathMatcherTest
- @coversDefaultClass \Drupal\Core\Path\PathMatcher @group Path
Namespace
Drupal\Tests\Core\PathCode
protected function setUp() {
// Create a stub config factory with all config settings that will be
// checked during this test.
$config_factory_stub = $this
->getConfigFactoryStub([
'system.site' => [
'page.front' => '/dummy',
],
]);
$route_match = $this
->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
$this->pathMatcher = new PathMatcher($config_factory_stub, $route_match);
}