You are here

protected function CommentTranslationUITest::getNewEntityValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/CommentTranslationUITest.php \Drupal\comment\Tests\CommentTranslationUITest::getNewEntityValues()

Returns an array of entity field values to be tested.

Overrides ContentTranslationUITestBase::getNewEntityValues

File

core/modules/comment/src/Tests/CommentTranslationUITest.php, line 119
Contains \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' => array(
      array(
        'value' => $this->subject,
      ),
    ),
    'comment_body' => array(
      array(
        'value' => $this
          ->randomMachineName(16),
      ),
    ),
  ) + parent::getNewEntityValues($langcode);
}