function OpenIDWebTestCase::submitLoginForm

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

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

... See full list

File

drupal/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'));
}