You are here

protected function ContentTranslationTestBase::getAdministratorPermissions in Drupal 8

Same name in this branch
  1. 8 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getAdministratorPermissions()
  2. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getAdministratorPermissions()

Returns an array of permissions needed for the administrator.

1 call to ContentTranslationTestBase::getAdministratorPermissions()
ContentTranslationTestBase::setupUsers in core/modules/content_translation/src/Tests/ContentTranslationTestBase.php
Creates and activates translator, editor and admin users.

File

core/modules/content_translation/src/Tests/ContentTranslationTestBase.php, line 147

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\content_translation\Tests

Code

protected function getAdministratorPermissions() {
  return array_merge($this
    ->getEditorPermissions(), $this
    ->getTranslatorPermissions(), [
    'administer content translation',
  ]);
}