ContentTestTranslationUITest.php 1.29 KB
Newer Older
1
2
3
4
<?php

/**
 * @file
5
 * Contains \Drupal\content_translation\Tests\ContentTestTranslationUITest.
6
7
 */

8
namespace Drupal\content_translation\Tests;
9
10

/**
11
12
13
 * Tests the test content translation UI with the test entity.
 *
 * @group content_translation
14
 */
15
class ContentTestTranslationUITest extends ContentTranslationUITestBase {
16

17
18
19
20
21
  /**
   * {@inheritdoc}
   */
  protected $testHTMLEscapeForAllLanguages = TRUE;

22
23
24
25
26
  /**
   * Modules to enable.
   *
   * @var array
   */
27
  public static $modules = array('language', 'content_translation', 'entity_test');
28

29
30
31
32
33
34
35
36
37
38
39
  /**
   * {@inheritdoc}
   */
  protected $defaultCacheContexts = [
    'languages:language_interface',
    'theme',
    'url.query_args:_wrapper_format',
    'user.permissions',
    'user.roles:authenticated',
  ];

40
41
42
  /**
   * Overrides \Drupal\simpletest\WebTestBase::setUp().
   */
43
  protected function setUp() {
44
    // Use the entity_test_mul as this has multilingual property support.
45
    $this->entityTypeId = 'entity_test_mul_changed';
46
47
48
49
    parent::setUp();
  }

  /**
50
   * Overrides \Drupal\content_translation\Tests\ContentTranslationUITestBase::getTranslatorPermission().
51
   */
52
  protected function getTranslatorPermissions() {
53
    return array_merge(parent::getTranslatorPermissions(), array('administer entity_test content', 'view test entity'));
54
55
56
  }

}