function OpenIDWebTestCase::submitLoginForm

7.x openid.test OpenIDWebTestCase::submitLoginForm($identity)

Initiates the login procedure using the specified User-supplied Identity.

10 calls to OpenIDWebTestCase::submitLoginForm()
OpenIDFunctionalTestCase::testBlockedUserLogin in drupal-7.x/modules/openid/openid.test
Test that a blocked user cannot log in.
OpenIDFunctionalTestCase::testLogin in drupal-7.x/modules/openid/openid.test
Test login using OpenID.
OpenIDFunctionalTestCase::testSignatureValidation in drupal-7.x/modules/openid/openid.test
Tests that openid.signed is verified.
OpenIDInvalidIdentifierTransitionTestCase::testStrippedFragmentAccountAutoUpdateSreg in drupal-7.x/modules/openid/openid.test
Test OpenID auto transition with e-mail.
OpenIDInvalidIdentifierTransitionTestCase::testStrippedFragmentAccountEmailMismatch in drupal-7.x/modules/openid/openid.test
Test OpenID transition with e-mail mismatch.

... See full list

File

drupal-7.x/modules/openid/openid.test, line 16
Tests for openid.module.

Class

OpenIDWebTestCase
Base class for OpenID tests.

Code

function submitLoginForm($identity) {
  // Fill out and submit the login form.
  $edit = array('openid_identifier' => $identity);
  $this->drupalPost('', $edit, t('Log in'));

  // Check we are on the OpenID redirect form.
  $this->assertTitle(t('OpenID redirect'), 'OpenID redirect page was displayed.');

  // Submit form to the OpenID Provider Endpoint.
  $this->drupalPost(NULL, array(), t('Send'));
}