function UnroutedUrlAssemblerTest::setUpMockPathProcessor
Reinitializes the path processor as a mock object.
3 calls to UnroutedUrlAssemblerTest::setUpMockPathProcessor()
- UnroutedUrlAssemblerTest::testAssembleWithEnabledProcessing in core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php - Tests assemble with enabled processing.
- UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing in core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php - Tests assemble with not enabled processing.
- UnroutedUrlAssemblerTest::testAssembleWithStartingSlashEnabledProcessing in core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php - Tests assemble with starting slash enabled processing.
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php, line 68
Class
Namespace
Drupal\Tests\Core\UtilityCode
protected function setUpMockPathProcessor() : void {
$this->pathProcessor = $this->createMock(OutboundPathProcessorInterface::class);
$reflection = new \ReflectionProperty($this->unroutedUrlAssembler, 'pathProcessor');
$reflection->setValue($this->unroutedUrlAssembler, $this->pathProcessor);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.