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.
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\FunctionalCode
public function changeAccessPerNode($access = TRUE) {
$accessPermissions = [
'per_node' => $access,
];
$this
->changeAccessContentType($accessPermissions);
}