function PathValidatorTest::setUpMockInboundPathProcessor
Reinitializes the inbound path processor as a mock object.
14 calls to PathValidatorTest::setUpMockInboundPathProcessor()
- PathValidatorTest::testGetUrlIfValidWithAccess in core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php - Tests the getUrlIfValid() method when there is access.
- PathValidatorTest::testGetUrlIfValidWithoutAccess in core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php - Tests the getUrlIfValid() method where there is no access.
- PathValidatorTest::testGetUrlIfValidWithoutAccessCheck in core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php - Tests the getUrlIfValidWithoutAccessCheck() method.
- PathValidatorTest::testGetUrlIfValidWithoutAccessCheckWithInvalidPath in core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php - Tests the getUrlIfValidWithoutAccessCheck() method with an invalid path.
- PathValidatorTest::testGetUrlIfValidWithQuery in core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php - Tests the getUrlIfValid() method with a query in the path.
File
-
core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php, line 107
Class
Namespace
Drupal\Tests\Core\PathCode
protected function setUpMockInboundPathProcessor() : void {
$this->pathProcessor = $this->createMock(InboundPathProcessorInterface::class);
$reflection = new \ReflectionProperty($this->pathValidator, 'pathProcessor');
$reflection->setValue($this->pathValidator, $this->pathProcessor);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.