function RedirectDestinationTest::testSetAfterGetCall
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetAfterGetCall()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetAfterGetCall()
- 11.x core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php \Drupal\Tests\Core\Routing\RedirectDestinationTest::testSetAfterGetCall()
@covers ::set @covers ::get
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RedirectDestinationTest.php, line 137
Class
- RedirectDestinationTest
- @coversDefaultClass \Drupal\Core\Routing\RedirectDestination @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function testSetAfterGetCall() : void {
$request = Request::create('/');
$request->query
->set('destination', '/other-example');
$this->requestStack
->push($request);
$this->setupUrlGenerator();
$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.