function RedirectDestinationTest::testSetBeforeGetCall

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

Tests set before get call.

@legacy-covers ::set @legacy-covers ::get

File

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

Class

RedirectDestinationTest
Tests Drupal\Core\Routing\RedirectDestination.

Namespace

Drupal\Tests\Core\Routing

Code

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

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