1 node.test NodeAccessRebuildTestCase::testNodeAccessRebuild()

Tests rebuilding the node access permissions table.

File

core/modules/node/tests/node.test, line 2331
Tests for node.module.

Class

NodeAccessRebuildTestCase
Verifies the rebuild functionality for the node_access table.

Code

function testNodeAccessRebuild() {
  $this->backdropGet('admin/reports/status');
  $this->clickLink(t('Rebuild permissions'));
  $this->backdropPost(NULL, array(), t('Rebuild permissions'));
  $this->assertText(t('Content permissions have been rebuilt.'));
}