Skip to content
Snippets Groups Projects
Commit 4d99a966 authored by Angie Byron's avatar Angie Byron
Browse files

#365597 follow-up by mfb: Tests for OpenID redirection from user/login.

parent 579173de
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -89,6 +89,21 @@ class OpenIDFunctionalTest extends DrupalWebTestCase {
$this->drupalPost(NULL, array(), t('Send'));
$this->assertText($this->web_user->name, t('User was logged in.'));
// Test logging in via the user/login page.
$this->drupalLogout();
$this->drupalPost('user/login', $edit, t('Log in'));
// Check we are on the OpenID redirect form.
$this->assertTitle(t('OpenID redirect'), t('OpenID redirect page was displayed.'));
// Submit form to the OpenID Provider Endpoint.
$this->drupalPost(NULL, array(), t('Send'));
$this->assertText($this->web_user->name, t('User was logged in.'));
// Verify user was redirected away from user/login to an accessible page.
$this->assertResponse(200);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment