diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-30 04:06:15 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-30 04:06:15 +0000 |
commit | 4d99a96690ba8ffbf20398d683ed3c040c167722 (patch) | |
tree | 1dc7bf8c41ee4b30d6b2fb312579f59beb1905d1 /modules/openid | |
parent | 579173decae8e68306240b8239c376c1d0124f28 (diff) | |
download | brdo-4d99a96690ba8ffbf20398d683ed3c040c167722.tar.gz brdo-4d99a96690ba8ffbf20398d683ed3c040c167722.tar.bz2 |
#365597 follow-up by mfb: Tests for OpenID redirection from user/login.
Diffstat (limited to 'modules/openid')
-rw-r--r-- | modules/openid/openid.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/openid/openid.test b/modules/openid/openid.test index 58e065e9a..2ff6d6e3b 100644 --- a/modules/openid/openid.test +++ b/modules/openid/openid.test @@ -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); } /** |