You are here

public function NodeaccesssRoleTestCase::testRoleNodeVisibilityNoAccess in Nodeaccess 7

Test node access when there should be no access whatsoever.

File

tests/nodeaccess_role.test, line 50
Tests for the nodeaccess module.

Class

NodeaccesssRoleTestCase
Tests the functionality of the nodeaccess module.

Code

public function testRoleNodeVisibilityNoAccess() {
  $grants = array(
    array(
      'gid' => DRUPAL_ANONYMOUS_RID,
      'realm' => 'nodeaccess_rid',
      'grant_view' => 0,
      'grant_update' => 0,
      'grant_delete' => 0,
    ),
    array(
      'gid' => DRUPAL_AUTHENTICATED_RID,
      'realm' => 'nodeaccess_rid',
      'grant_view' => 0,
      'grant_update' => 0,
      'grant_delete' => 0,
    ),
  );
  $this
    ->checkRoleGrantAccesses($grants);
}