function RedirectDestinationTest::testSetBeforeGetCall
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetBeforeGetCall()
- 10 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetBeforeGetCall()
- 11.x 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 <a href="/api/drupal/core%21lib%21Drupal%21Core%21Routing%21RedirectDestination.php/class/RedirectDestination/9" title="Provides helpers for redirect destinations." class="local">\Drupal\Core\Routing\RedirectDestination</a> @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function testSetBeforeGetCall() {
$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.