You are here

function OpenIDWebTestCase::submitLoginForm in Drupal 7

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

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

... See full list

File

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