You are here

protected function PathMatcherTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 29
Contains \Drupal\Tests\Core\Path\PathMatcherTest.

Class

PathMatcherTest
@coversDefaultClass \Drupal\Core\Path\PathMatcher @group Path

Namespace

Drupal\Tests\Core\Path

Code

protected function setUp() {

  // Create a stub config factory with all config settings that will be
  // checked during this test.
  $config_factory_stub = $this
    ->getConfigFactoryStub(array(
    'system.site' => array(
      'page.front' => '/dummy',
    ),
  ));
  $route_match = $this
    ->getMock('Drupal\\Core\\Routing\\RouteMatchInterface');
  $this->pathMatcher = new PathMatcher($config_factory_stub, $route_match);
}