You are here

function NodeAccessRebuildTest::testNodeAccessRebuild in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Tests/NodeAccessRebuildTest.php \Drupal\node\Tests\NodeAccessRebuildTest::testNodeAccessRebuild()

Tests rebuilding the node access permissions table.

File

core/modules/node/src/Tests/NodeAccessRebuildTest.php, line 34
Contains \Drupal\node\Tests\NodeAccessRebuildTest.

Class

NodeAccessRebuildTest
Ensures that node access rebuild functions work correctly.

Namespace

Drupal\node\Tests

Code

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