protected function CommentTranslationUITest::createEntity

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

Overrides EntityTranslationUITest::createEntity

1 call to CommentTranslationUITest::createEntity()
CommentTranslationUITest::testTranslateLinkCommentAdminPage in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php
Tests translate link on comment content admin page.

File

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

Class

CommentTranslationUITest
Tests the Comment Translation UI.

Namespace

Drupal\comment\Tests

Code

protected function createEntity($values, $langcode, $node_bundle = NULL) {
  if (!isset($node_bundle)) {
    $node_bundle = $this->nodeBundle;
  }
  $node = $this
    ->drupalCreateNode(array(
    'type' => $node_bundle,
  ));
  $values['nid'] = $node->nid;
  $values['uid'] = $node->uid;
  return parent::createEntity($values, $langcode);
}