You are here

public function RedirectToDestinationTest::redirectToDestinationDataProvider in Redirect 403 to User Login 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/RedirectToDestinationTest.php \Drupal\Tests\r4032login\Functional\RedirectToDestinationTest::redirectToDestinationDataProvider()

Data provider for testRedirectToDestination.

File

tests/src/Functional/RedirectToDestinationTest.php, line 45

Class

RedirectToDestinationTest
Test the option "Redirect user to the page they tried to access after login".

Namespace

Drupal\Tests\r4032login\Functional

Code

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',
    ],
  ];
}