You are here

public function RedirectDestinationTest::testSetBeforeGetCall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 130
Contains \Drupal\Tests\Core\Routing\RedirectDestinationTest.

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());
}