You are here

public function AuthenticatedRedirectTest::baseRedirectDataProvider in Redirect 403 to User Login 8

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

Data provider for testBaseRedirect.

File

tests/src/Functional/AuthenticatedRedirectTest.php, line 66

Class

AuthenticatedRedirectTest
Test authenticated redirection from 403 to configured page.

Namespace

Drupal\Tests\r4032login\Functional

Code

public function baseRedirectDataProvider() {
  return [
    [
      '',
      'admin/config',
      403,
      'admin/config',
    ],
    [
      '/test',
      'admin/config',
      404,
      '/test',
    ],
    [
      'https://www.drupal.org',
      'admin/config',
      200,
      'https://www.drupal.org',
    ],
  ];
}