function OpenIDWebTestCase::submitLoginForm

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

20 calls to OpenIDWebTestCase::submitLoginForm()
OpenIDFunctionalTestCase::testBlockedUserLogin in drupal-7.x/modules/openid/openid.test
Test that a blocked user cannot log in.
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::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.

... See full list

Archivo

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

Class

OpenIDWebTestCase
Base class for OpenID tests.

Código

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