protected function RedirectTest::createLoginDestinationToNode1 in Login Destination 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/RedirectTest.php \Drupal\Tests\login_destination\Functional\RedirectTest::createLoginDestinationToNode1()
Creates a login destination to /node/1.
Parameters
array $triggers: The triggers to activate for the redirect.
11 calls to RedirectTest::createLoginDestinationToNode1()
- RedirectTest::testNoRedirectAfterLogin in tests/
src/ Functional/ RedirectTest.php - Tests no redirect after logging in without compatible destination rule.
- RedirectTest::testNoRedirectAfterLogout in tests/
src/ Functional/ RedirectTest.php - Tests no redirect after logging out without compatible destination rule.
- RedirectTest::testNoRedirectAfterOneTimeLoginAndSettingPassword in tests/
src/ Functional/ RedirectTest.php - Tests no redirect after one-time login without compatible destination rule.
- RedirectTest::testNoRedirectAfterRegistering in tests/
src/ Functional/ RedirectTest.php - Tests no redirect after registering in without compatible destination rule.
- RedirectTest::testNoRedirectAfterUpdatingAccountWithoutLoginLink in tests/
src/ Functional/ RedirectTest.php - Tests no redirect when updating account and not using one-time login link.
File
- tests/
src/ Functional/ RedirectTest.php, line 56
Class
- RedirectTest
- Tests redirects.
Namespace
Drupal\Tests\login_destination\FunctionalCode
protected function createLoginDestinationToNode1(array $triggers = []) {
$this
->createLoginDestinationRule([
'triggers' => $triggers,
'destination_path' => 'internal:/node/1',
]);
}