$this->assertEqual($response['openid.identity'],$new_identity,t('hook_openid_request_alter() were invoked.'));
}
/**
...
...
@@ -449,8 +470,11 @@ class OpenIDRegistrationTestCase extends OpenIDWebTestCase {
$this->assertRaw(t('Account registration using the information provided by your OpenID provider failed due to the reasons listed below. Complete the registration by filling out the form below. If you already have an account, you can <a href="@login">log in</a> now and add your OpenID under "My account".',array('@login'=>url('user/login'))),t('User was asked to complete the registration process manually.'));
$this->assertRaw(t('The name %name is already taken.',array('%name'=>$web_user->name)),t('Form validation error for username was displayed.'));
$this->assertRaw(t('The e-mail address %mail is not valid.',array('%mail'=>'mail@invalid#')),t('Form validation error for e-mail address was displayed.'));
$this->assertTrue(variable_get('openid_test_hook_openid_response_response'),t('hook_openid_response() was invoked.'));
$this->assertFalse(variable_get('openid_test_hook_openid_response_account',TRUE),t('No user object passed to hook_openid_response().'));