From 78c835e43a89c28f0763a49ee767c49c8cd28129 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 18 Jan 2010 17:32:51 +0000 Subject: [PATCH] - Patch #686800 by c960657: refined the OpenID tests to verify that the user actually logged in to avoid false positives with blocked users. --- modules/openid/openid.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openid/openid.test b/modules/openid/openid.test index 84e11b99a5d..3cdc88e63c7 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.'));