public function XMLSitemapUserFunctionalTest::testBlockedUser in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap_user/xmlsitemap_user.test \XMLSitemapUserFunctionalTest::testBlockedUser()
Blocked User().
File
- xmlsitemap_user/
xmlsitemap_user.test, line 69 - Unit tests for the xmlsitemap_user module.
Class
- XMLSitemapUserFunctionalTest
- Tests for User Functional.
Code
public 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 https://www.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);
}