You are here

function ContentAccessTestCase::changeAccessPerNode in Content Access 6

Same name and namespace in other branches
  1. 5 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessPerNode()
  2. 7 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessPerNode()

Change the per node access setting for a content type

6 calls to ContentAccessTestCase::changeAccessPerNode()
ContentAccessACLTestCase::testDeleteAccess in tests/content_access_acl.test
Test Deleting accessibility with permissions for single users
ContentAccessACLTestCase::testEditAccess in tests/content_access_acl.test
Test Editing accessibility with permissions for single users
ContentAccessACLTestCase::testViewAccess in tests/content_access_acl.test
Test Viewing accessibility with permissions for single users
ContentAccessModuleTestCase::testDeleteAccess in tests/content_access.test
Test for deleting nodes
ContentAccessModuleTestCase::testEditAccess in tests/content_access.test
Test for editing nodes

... See full list

File

tests/content_access_test_help.php, line 90
Helper class with auxiliary functions for content access module tests

Class

ContentAccessTestCase
@file Helper class with auxiliary functions for content access module tests

Code

function changeAccessPerNode($access = TRUE) {
  $access_permissions = array(
    'per_node' => $access,
  );
  $this
    ->changeAccessContentType($access_permissions);
}