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