function ContentAccessTestCase::changeAccessContentType in Content Access 5
Same name and namespace in other branches
- 6 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessContentType()
- 7 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessContentType()
Change access permissions for a content type
4 calls to ContentAccessTestCase::changeAccessContentType()
- ContentAccessACLTestCase::testViewAccess in tests/
content_access_acl.test - Test Viewing accessibility with permissions for single users
- 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 72 - 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
->drupalPostRequest('admin/content/types/' . $this->url_content_type_name . '/access', $access_settings, 'Submit');
$this
->assertText(t('Your changes have been saved.'), 'access rules of content type were updated successfully');
}