function RedirectDestinationTest::setUp

Same name and namespace in other branches
  1. 11.x 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()
  3. 9 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::setUp()
  4. 8.9.x 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 48

Class

RedirectDestinationTest
Tests Drupal\Core\Routing\RedirectDestination.

Namespace

Drupal\Tests\Core\Routing

Code

protected function setUp() : void {
  parent::setUp();
  $this->requestStack = new RequestStack();
  $this->urlGenerator = $this->createStub(UrlGeneratorInterface::class);
  $this->redirectDestination = new RedirectDestination($this->requestStack, $this->urlGenerator);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.