function ContentAccessTestCase::changeAccessContentType in Content Access 7
Same name and namespace in other branches
- 5 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessContentType()
- 6 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessContentType()
Change access permissions for a content type
5 calls to ContentAccessTestCase::changeAccessContentType()
- ContentAccessACLTestCase::testViewAccess in tests/
content_access_acl.test - Test Viewing accessibility with permissions for single users
- ContentAccessModuleTestCase::testOwnViewAccess in tests/
content_access.test - Test own view access.
- ContentAccessModuleTestCase::testViewAccess in tests/
content_access.test - Test for viewing nodes.
- ContentAccessTestCase::changeAccessContentTypeKeyword in tests/
content_access_test_help.php - Change access permissions for a content type by a given keyword (view, update or delete) for the role of the user
- ContentAccessTestCase::changeAccessPerNode in tests/
content_access_test_help.php - Change the per node access setting for a content type
File
- tests/
content_access_test_help.php, line 62 - 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 changeAccessContentType($access_settings) {
$this
->drupalPost('admin/structure/types/manage/' . $this->content_type->type . '/access', $access_settings, t('Submit'));
$this
->assertText(t('Your changes have been saved.'), 'access rules of content type were updated successfully');
}