protected function CommentTranslationUITest::getNewEntityValues

Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::getNewEntityValues().

Overrides EntityTranslationUITest::getNewEntityValues

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php, line 90
Definition of Drupal\comment\Tests\CommentTranslationUITest.

Class

CommentTranslationUITest
Tests the Comment Translation UI.

Namespace

Drupal\comment\Tests

Code

protected function getNewEntityValues($langcode) {

  // Comment subject is not translatable hence we use a fixed value.
  return array(
    'subject' => $this->subject,
    'comment_body' => array(
      array(
        'value' => $this
          ->randomString(16),
      ),
    ),
  ) + parent::getNewEntityValues($langcode);
}