You are here

public function RedirectDestinationTest::testSetBeforeGetCall 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::testSetBeforeGetCall()
  2. 10 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetBeforeGetCall()

@covers ::set @covers ::get

File

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

Class

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

Namespace

Drupal\Tests\Core\Routing

Code

public function testSetBeforeGetCall() {
  $this->redirectDestination
    ->set('/example');
  $this
    ->assertEquals('/example', $this->redirectDestination
    ->get());
}