function NodeAccessRebuildTestCase::testNodeAccessRebuild
Tests rebuilding the node access permissions table.
File
-
modules/
node/ node.test, line 1783
Class
- NodeAccessRebuildTestCase
- Verifies the rebuild functionality for the node_access table.
Code
function testNodeAccessRebuild() {
$this->drupalGet('admin/reports/status');
$this->clickLink(t('Rebuild permissions'));
$this->drupalPost(NULL, array(), t('Rebuild permissions'));
$this->assertText(t('Content permissions have been rebuilt.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.