summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-18 17:32:51 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-18 17:32:51 +0000
commit78c835e43a89c28f0763a49ee767c49c8cd28129 (patch)
tree88147fd5557cca9fc349046239a001135912b3a4 /modules/openid
parent5c46be8267c35cd6157b1d8f219ab23df9b448ca (diff)
downloadbrdo-78c835e43a89c28f0763a49ee767c49c8cd28129.tar.gz
brdo-78c835e43a89c28f0763a49ee767c49c8cd28129.tar.bz2
- Patch #686800 by c960657: refined the OpenID tests to verify that the user actually logged in to avoid false positives with blocked users.
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/openid/openid.test b/modules/openid/openid.test
index 84e11b99a..3cdc88e63 100644
--- a/modules/openid/openid.test
+++ b/modules/openid/openid.test
@@ -87,7 +87,7 @@ class OpenIDFunctionalTest extends DrupalWebTestCase {
// Submit form to the OpenID Provider Endpoint.
$this->drupalPost(NULL, array(), t('Send'));
- $this->assertText($this->web_user->name, t('User was logged in.'));
+ $this->assertLink($this->web_user->name, 0, t('User was logged in.'));
// Test logging in via the user/login page.
$this->drupalLogout();
@@ -99,7 +99,7 @@ class OpenIDFunctionalTest extends DrupalWebTestCase {
// Submit form to the OpenID Provider Endpoint.
$this->drupalPost(NULL, array(), t('Send'));
- $this->assertText($this->web_user->name, t('User was logged in.'));
+ $this->assertLink($this->web_user->name, 0, t('User was logged in.'));
// Verify user was redirected away from user/login to an accessible page.
$this->assertResponse(200);
@@ -166,7 +166,7 @@ class OpenIDFunctionalTest extends DrupalWebTestCase {
// Submit form to the OpenID Provider Endpoint.
$this->drupalPost(NULL, array(), t('Send'));
- $this->assertText('john', t('User was logged in.'));
+ $this->assertLink('john', 0, t('User was logged in.'));
$user = user_load_by_name('john');
$this->assertTrue($user, t('User was registered with right username.'));