Issue #1897770 by YesCT, jayboodhun: Make getTranslatorPermissions() protected.
parent
050c8a74b5
commit
05d0b5a814
|
@ -54,7 +54,7 @@ class CommentTranslationUITest extends EntityTranslationUITest {
|
|||
/**
|
||||
* Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getTranslatorPermission().
|
||||
*/
|
||||
function getTranslatorPermissions() {
|
||||
protected function getTranslatorPermissions() {
|
||||
return array_merge(parent::getTranslatorPermissions(), array('post comments', 'administer comments'));
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class NodeTranslationUITest extends EntityTranslationUITest {
|
|||
/**
|
||||
* Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getTranslatorPermission().
|
||||
*/
|
||||
function getTranslatorPermissions() {
|
||||
protected function getTranslatorPermissions() {
|
||||
return array_merge(parent::getTranslatorPermissions(), array("edit any $this->bundle content"));
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ class TermTranslationUITest extends EntityTranslationUITest {
|
|||
/**
|
||||
* Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getTranslatorPermission().
|
||||
*/
|
||||
function getTranslatorPermissions() {
|
||||
protected function getTranslatorPermissions() {
|
||||
return array_merge(parent::getTranslatorPermissions(), array('administer taxonomy'));
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class EntityTestTranslationUITest extends EntityTranslationUITest {
|
|||
/**
|
||||
* Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getTranslatorPermission().
|
||||
*/
|
||||
function getTranslatorPermissions() {
|
||||
protected function getTranslatorPermissions() {
|
||||
return array_merge(parent::getTranslatorPermissions(), array('administer entity_test content'));
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class UserTranslationUITest extends EntityTranslationUITest {
|
|||
/**
|
||||
* Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getTranslatorPermission().
|
||||
*/
|
||||
function getTranslatorPermissions() {
|
||||
protected function getTranslatorPermissions() {
|
||||
return array_merge(parent::getTranslatorPermissions(), array('administer users'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue