You are here

protected function ContentTranslationTestBase::getAdministratorPermissions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getAdministratorPermissions()

Returns an array of permissions needed for the administrator.

3 calls to ContentTranslationTestBase::getAdministratorPermissions()
ContentTranslationTestBase::setupUsers in core/modules/content_translation/src/Tests/ContentTranslationTestBase.php
Creates and activates translator, editor and admin users.
MenuLinkContentTranslationUITest::getAdministratorPermissions in core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
Returns an array of permissions needed for the administrator.
NodeTranslationUITest::getAdministratorPermissions in core/modules/node/src/Tests/NodeTranslationUITest.php
Returns an array of permissions needed for the administrator.
2 methods override ContentTranslationTestBase::getAdministratorPermissions()
MenuLinkContentTranslationUITest::getAdministratorPermissions in core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
Returns an array of permissions needed for the administrator.
NodeTranslationUITest::getAdministratorPermissions in core/modules/node/src/Tests/NodeTranslationUITest.php
Returns an array of permissions needed for the administrator.

File

core/modules/content_translation/src/Tests/ContentTranslationTestBase.php, line 143
Contains \Drupal\content_translation\Tests\ContentTranslationTestBase.

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\content_translation\Tests

Code

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