protected function ContentTranslationTestBase::getAdministratorPermissions in Drupal 8
Same name in this branch
- 8 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::getAdministratorPermissions()
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getAdministratorPermissions()
Same name and namespace in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::getAdministratorPermissions()
- 10 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.
5 calls to ContentTranslationTestBase::getAdministratorPermissions()
- ContentTranslationTestBase::setupUsers in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php - Creates and activates translator, editor and admin users.
- LayoutBuilderTranslationTest::getAdministratorPermissions in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderTranslationTest.php - Returns an array of permissions needed for the administrator.
- MediaTranslationUITest::getAdministratorPermissions in core/
modules/ media/ tests/ src/ Functional/ MediaTranslationUITest.php - Returns an array of permissions needed for the administrator.
- MenuLinkContentTranslationUITest::getAdministratorPermissions in core/
modules/ menu_link_content/ tests/ src/ Functional/ MenuLinkContentTranslationUITest.php - Returns an array of permissions needed for the administrator.
- NodeTranslationUITest::getAdministratorPermissions in core/
modules/ node/ tests/ src/ Functional/ NodeTranslationUITest.php - Returns an array of permissions needed for the administrator.
4 methods override ContentTranslationTestBase::getAdministratorPermissions()
- LayoutBuilderTranslationTest::getAdministratorPermissions in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderTranslationTest.php - Returns an array of permissions needed for the administrator.
- MediaTranslationUITest::getAdministratorPermissions in core/
modules/ media/ tests/ src/ Functional/ MediaTranslationUITest.php - Returns an array of permissions needed for the administrator.
- MenuLinkContentTranslationUITest::getAdministratorPermissions in core/
modules/ menu_link_content/ tests/ src/ Functional/ MenuLinkContentTranslationUITest.php - Returns an array of permissions needed for the administrator.
- NodeTranslationUITest::getAdministratorPermissions in core/
modules/ node/ tests/ src/ Functional/ NodeTranslationUITest.php - Returns an array of permissions needed for the administrator.
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 141
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function getAdministratorPermissions() {
return array_merge($this
->getEditorPermissions(), $this
->getTranslatorPermissions(), [
'administer languages',
'administer content translation',
]);
}