You are here

protected function RedirectDestinationTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php, line 41

Class

RedirectDestinationTest
@coversDefaultClass \Drupal\Core\Routing\RedirectDestination @group Routing

Namespace

Drupal\Tests\Core\Routing

Code

protected function setUp() {
  parent::setUp();
  $this->requestStack = new RequestStack();
  $this->urlGenerator = $this
    ->createMock('Drupal\\Core\\Routing\\UrlGeneratorInterface');
  $this->redirectDestination = new RedirectDestination($this->requestStack, $this->urlGenerator);
}