protected function PathValidatorTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 61 - Contains \Drupal\Tests\Core\Path\PathValidatorTest.
Class
- PathValidatorTest
- @coversDefaultClass \Drupal\Core\Path\PathValidator @group Routing
Namespace
Drupal\Tests\Core\PathCode
protected function setUp() {
parent::setUp();
$this->accessAwareRouter = $this
->getMock('Drupal\\Core\\Routing\\AccessAwareRouterInterface');
$this->accessUnawareRouter = $this
->getMock('Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface');
$this->account = $this
->getMock('Drupal\\Core\\Session\\AccountInterface');
$this->pathProcessor = $this
->getMock('Drupal\\Core\\PathProcessor\\InboundPathProcessorInterface');
$this->pathValidator = new PathValidator($this->accessAwareRouter, $this->accessUnawareRouter, $this->account, $this->pathProcessor);
}