function ContentAccessTestCase::changeAccessPerNode in Content Access 5
Same name and namespace in other branches
- 6 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessPerNode()
- 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
File
- tests/
content_access_test_help.php, line 115 - 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);
}