You are here

function ContentAccessTestCase::changeAccessNode in Content Access 5

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

Change access permission for a node

1 call to ContentAccessTestCase::changeAccessNode()
ContentAccessTestCase::changeAccessNodeKeyword in tests/content_access_test_help.php
Change access permissions for a node by a given keyword (view, update or delete)

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 changeAccessNode($node, $access_settings) {
  $this
    ->drupalPostRequest('node/' . $node->nid . '/access', $access_settings, 'Submit');
  $this
    ->assertText(t('Your changes have been saved.'), 'access rules of node were updated successfully');
}