protected function CompiledRouteLegacyTest::setUp in Drupal 9
Overrides UnitTestCase::setUp
File
- core/tests/ Drupal/ Tests/ Core/ Routing/ CompiledRouteLegacyTest.php, line 31 
Class
- CompiledRouteLegacyTest
- @coversDefaultClass \Drupal\Core\Routing\CompiledRoute @group Routing @group legacy
Namespace
Drupal\Tests\Core\RoutingCode
protected function setUp() : void {
  parent::setUp();
  // We can pass in dummy values because we're not doing anything in this
  // test except for verifying the deprecation notices are being thrown.
  $this->compiled_route = new CompiledRoute(0, "", 0, "", "", [], []);
  $this->mocked_route = $this
    ->createMock('Symfony\\Component\\Routing\\Route');
  $this->mocked_route
    ->expects($this
    ->any())
    ->method('getDefaults')
    ->willReturn([]);
  $this->mocked_route
    ->expects($this
    ->any())
    ->method('getRequirements')
    ->willReturn([]);
  $this->mocked_route
    ->expects($this
    ->any())
    ->method('getOptions')
    ->willReturn([]);
}