protected function NodeTranslationUITest::getTranslatorPermissions in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::getTranslatorPermissions()
- 10 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::getTranslatorPermissions()
Returns an array of permissions needed for the translator.
Overrides ContentTranslationTestBase::getTranslatorPermissions
File
- core/
modules/ node/ tests/ src/ Functional/ NodeTranslationUITest.php, line 138
Class
- NodeTranslationUITest
- Tests the Node Translation UI.
Namespace
Drupal\Tests\node\FunctionalCode
protected function getTranslatorPermissions() {
return array_merge(parent::getTranslatorPermissions(), [
'administer nodes',
"edit any {$this->bundle} content",
]);
}