class ContentTestTranslationUITest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php \Drupal\Tests\content_translation\Functional\ContentTestTranslationUITest
- 9 core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php \Drupal\Tests\content_translation\Functional\ContentTestTranslationUITest
Tests the test content translation UI with the test entity.
@group content_translation
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase
- class \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase uses AssertPageCacheContextsAndTagsTrait
- class \Drupal\Tests\content_translation\Functional\ContentTestTranslationUITest
- class \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase uses AssertPageCacheContextsAndTagsTrait
- class \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase
Expanded class hierarchy of ContentTestTranslationUITest
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTestTranslationUITest.php, line 10
Namespace
Drupal\Tests\content_translation\FunctionalView source
class ContentTestTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $testHTMLEscapeForAllLanguages = TRUE;
/**
* {@inheritdoc}
*/
protected $defaultCacheContexts = [
'languages:language_interface',
'theme',
'url.query_args:_wrapper_format',
'user.permissions',
'url.site',
];
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = [
'language',
'content_translation',
'entity_test',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp() : void {
// Use the entity_test_mul as this has multilingual property support.
$this->entityTypeId = 'entity_test_mul_changed';
parent::setUp();
}
/**
* {@inheritdoc}
*/
protected function getTranslatorPermissions() {
return array_merge(parent::getTranslatorPermissions(), [
'administer entity_test content',
'view test entity',
]);
}
}