You are here

function XMLSitemapUserFunctionalTest::testBlockedUser in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_user/xmlsitemap_user.test \XMLSitemapUserFunctionalTest::testBlockedUser()

File

xmlsitemap_user/xmlsitemap_user.test, line 36
Unit tests for the xmlsitemap_user module.

Class

XMLSitemapUserFunctionalTest
@file Unit tests for the xmlsitemap_user module.

Code

function testBlockedUser() {
  $this
    ->drupalLogin($this->admin_user);
  $this
    ->assertSitemapLinkVisible('user', $this->normal_user->uid);

  // Mark the user as blocked.
  $edit = array(
    'status' => 0,
  );

  // This will pass when http://drupal.org/node/360925 is fixed.
  $this
    ->drupalPost('user/' . $this->normal_user->uid . '/edit', $edit, t('Save'));
  $this
    ->assertText('The changes have been saved.');
  $this
    ->assertSitemapLinkNotVisible('user', $this->normal_user->uid);
}