function ModerationFormTest::getAdministratorPermissions
2 calls to ModerationFormTest::getAdministratorPermissions()
- ModerationFormTest::testContentTranslationNodeForm in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationFormTest.php - Tests translated and moderated nodes.
- ModerationFormTest::testNonBundleModerationForm in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationFormTest.php - Tests moderation non-bundle entity type.
File
-
core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationFormTest.php, line 38
Class
- ModerationFormTest
- Tests the moderation form, specifically on nodes.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function getAdministratorPermissions() : array {
return array_merge($this->permissions, [
'administer entity_test content',
'view test entity',
'translate any entity',
'bypass node access',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.