public function PreserveQueryStringTest::preserveQueryStringDataProvider in Redirect 403 to User Login 8
Same name and namespace in other branches
- 2.x tests/src/Functional/PreserveQueryStringTest.php \Drupal\Tests\r4032login\Functional\PreserveQueryStringTest::preserveQueryStringDataProvider()
Data provider for testPreserveQueryString.
File
- tests/
src/ Functional/ PreserveQueryStringTest.php, line 46
Class
- PreserveQueryStringTest
- Test that query string is preserved after redirection.
Namespace
Drupal\Tests\r4032login\FunctionalCode
public function preserveQueryStringDataProvider() {
return [
[
'admin/modules',
[],
200,
'user/login?destination=admin/modules',
],
[
'admin/modules',
[
'query' => [
'foo' => 'bar',
],
],
200,
'user/login?destination=admin/modules%3Ffoo%3Dbar',
],
];
}