You are here

public function ContentAccessTestHelperTrait::changeAccessNode in Content Access 8

Change access permission for a node.

1 call to ContentAccessTestHelperTrait::changeAccessNode()
ContentAccessTestHelperTrait::changeAccessNodeKeyword in tests/src/Functional/ContentAccessTestHelperTrait.php
Access keyword for node.

File

tests/src/Functional/ContentAccessTestHelperTrait.php, line 97

Class

ContentAccessTestHelperTrait
Helper class with auxiliary functions for content access module tests.

Namespace

Drupal\Tests\content_access\Functional

Code

public function changeAccessNode(NodeInterface $node, $accessSettings) {
  $this
    ->drupalPostForm('node/' . $node
    ->id() . '/access', $accessSettings, t('Submit'));
  $this
    ->assertSession()
    ->pageTextContains(t('Your changes have been saved.'));
}