public function NodeaccesssRoleTestCase::testRoleNodeVisibilityFullAccess in Nodeaccess 7
Test node access when anon and authenticated users should have full access.
File
- tests/
nodeaccess_role.test, line 159 - Tests for the nodeaccess module.
Class
- NodeaccesssRoleTestCase
- Tests the functionality of the nodeaccess module.
Code
public function testRoleNodeVisibilityFullAccess() {
$grants = array(
array(
'gid' => DRUPAL_ANONYMOUS_RID,
'realm' => 'nodeaccess_rid',
'grant_view' => 1,
'grant_update' => 1,
'grant_delete' => 1,
),
array(
'gid' => DRUPAL_AUTHENTICATED_RID,
'realm' => 'nodeaccess_rid',
'grant_view' => 1,
'grant_update' => 1,
'grant_delete' => 1,
),
);
nodeaccess_set_grants($this->node, $grants);
// Run all tests from grant.
$this
->checkRoleGrantAccesses($grants);
}