You are here

function ContentAccessTestCase::changeAccessNode in Content Access 7

Same name and namespace in other branches
  1. 5 tests/content_access_test_help.php \ContentAccessTestCase::changeAccessNode()
  2. 6 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 118
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
    ->drupalPost('node/' . $node->nid . '/access', $access_settings, t('Submit'));
  $this
    ->assertText(t('Your changes have been saved.'), 'access rules of node were updated successfully');
}