protected function PathValidatorTest::setUp in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::setUp()
- 8 core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php \Drupal\KernelTests\Core\Path\PathValidatorTest::setUp()
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php, line 57
Class
- PathValidatorTest
- @coversDefaultClass \Drupal\Core\Path\PathValidator @group Routing
Namespace
Drupal\Tests\Core\PathCode
protected function setUp() {
parent::setUp();
$this->accessAwareRouter = $this
->createMock('Drupal\\Core\\Routing\\AccessAwareRouterInterface');
$this->accessUnawareRouter = $this
->createMock('Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface');
$this->account = $this
->createMock('Drupal\\Core\\Session\\AccountInterface');
$this->pathProcessor = $this
->createMock('Drupal\\Core\\PathProcessor\\InboundPathProcessorInterface');
$this->pathValidator = new PathValidator($this->accessAwareRouter, $this->accessUnawareRouter, $this->account, $this->pathProcessor);
}