ContentTestTranslationUITest.php in Drupal 9
File
core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php
View source
<?php
namespace Drupal\Tests\content_translation\Functional;
class ContentTestTranslationUITest extends ContentTranslationUITestBase {
protected $testHTMLEscapeForAllLanguages = TRUE;
protected $defaultCacheContexts = [
'languages:language_interface',
'theme',
'url.query_args:_wrapper_format',
'user.permissions',
'url.site',
];
protected static $modules = [
'language',
'content_translation',
'entity_test',
];
protected $defaultTheme = 'classy';
protected function setUp() : void {
$this->entityTypeId = 'entity_test_mul_changed';
parent::setUp();
}
protected function getTranslatorPermissions() {
return array_merge(parent::getTranslatorPermissions(), [
'administer entity_test content',
'view test entity',
]);
}
}