OpenIDFunctionalTestCase::testDelete

7 openid.test OpenIDFunctionalTestCase::testDelete()
8 openid.test OpenIDFunctionalTestCase::testDelete()

Test deleting an OpenID identity from a user's profile.

File

modules/openid/openid.test, line 220
Tests for openid.module.

Code

function testDelete() {
  $this->drupalLogin($this->web_user);

  // Add identity to user's profile.
  $identity = url('openid-test/yadis/xrds', array('absolute' => TRUE));
  $this->addIdentity($identity);
  $this->assertText($identity, t('Identity appears in list.'));

  // Delete the newly added identity.
  $this->clickLink(t('Delete'));
  $this->drupalPost(NULL, array(), t('Confirm'));

  $this->assertText(t('OpenID deleted.'), t('Identity deleted'));
  $this->assertNoText($identity, t('Identity no longer appears in list.'));
}
Login or register to post comments