ContentTestTranslationUITest.php 1.07 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

  /**
   * Overrides \Drupal\simpletest\WebTestBase::setUp().
   */
32
  protected function setUp() {
33
    // Use the entity_test_mul as this has multilingual property support.
34
    $this->entityTypeId = 'entity_test_mul_changed';
35
36
37
38
    parent::setUp();
  }

  /**
39
   * Overrides \Drupal\content_translation\Tests\ContentTranslationUITestBase::getTranslatorPermission().
40
   */
41
  protected function getTranslatorPermissions() {
42
    return array_merge(parent::getTranslatorPermissions(), array('administer entity_test content', 'view test entity'));
43
44
45
  }

}