You are here

protected function NodeTranslationUITest::getTranslatorPermissions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::getTranslatorPermissions()
  2. 9 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::getTranslatorPermissions()

File

core/modules/node/tests/src/Functional/NodeTranslationUITest.php, line 138

Class

NodeTranslationUITest
Tests the Node Translation UI.

Namespace

Drupal\Tests\node\Functional

Code

protected function getTranslatorPermissions() {
  return array_merge(parent::getTranslatorPermissions(), [
    'administer nodes',
    "edit any {$this->bundle} content",
  ]);
}