public function RedirectDestinationTest::testSetAfterGetCall in Drupal 8
Same name and namespace in other branches
- 9 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 135
Class
- RedirectDestinationTest
- @coversDefaultClass \Drupal\Core\Routing\RedirectDestination @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function testSetAfterGetCall() {
$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());
}