public function RedirectToDestinationTest::redirectToDestinationDataProvider in Redirect 403 to User Login 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/RedirectToDestinationTest.php \Drupal\Tests\r4032login\Functional\RedirectToDestinationTest::redirectToDestinationDataProvider()
Data provider for testRedirectToDestination.
File
- tests/
src/ Functional/ RedirectToDestinationTest.php, line 50
Class
- RedirectToDestinationTest
- Test the option "Redirect user to the page they tried to access after login".
Namespace
Drupal\Tests\r4032login\FunctionalCode
public function redirectToDestinationDataProvider() {
return [
[
TRUE,
'admin/config',
'user/login?destination=admin/config',
],
[
FALSE,
'admin/config',
'user/login',
],
[
TRUE,
'admin/modules',
'user/login?destination=admin/modules',
],
[
FALSE,
'admin/modules',
'user/login',
],
];
}