You are here

function NodeAccessRebuildTestCase::testNodeAccessRebuild in Drupal 7

Tests rebuilding the node access permissions table.

File

modules/node/node.test, line 1760
Tests for node.module.

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