You are here

public function ContentAccessTestHelperTrait::changeAccessPerNode in Content Access 8

Change the per node access setting for a content type.

7 calls to ContentAccessTestHelperTrait::changeAccessPerNode()
ContentAccessAclTest::testDeleteAccess in tests/src/Functional/ContentAccessAclTest.php
Test Deleting accessibility with permissions for single users.
ContentAccessAclTest::testEditAccess in tests/src/Functional/ContentAccessAclTest.php
Test Editing accessibility with permissions for single users.
ContentAccessAclTest::testViewAccess in tests/src/Functional/ContentAccessAclTest.php
Test Viewing accessibility with permissions for single users.
ContentAccessModuleTest::testDeleteAccess in tests/src/Functional/ContentAccessModuleTest.php
Test for deleting nodes.
ContentAccessModuleTest::testEditAccess in tests/src/Functional/ContentAccessModuleTest.php
Test for editing nodes.

... See full list

File

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

Class

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

Namespace

Drupal\Tests\content_access\Functional

Code

public function changeAccessPerNode($access = TRUE) {
  $accessPermissions = [
    'per_node' => $access,
  ];
  $this
    ->changeAccessContentType($accessPermissions);
}