You are here

protected function NodeTranslationUITest::getNewEntityValues in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::getNewEntityValues()

Returns an array of entity field values to be tested.

Overrides ContentTranslationUITestBase::getNewEntityValues

1 call to NodeTranslationUITest::getNewEntityValues()
NodeTranslationUITest::testTranslationRendering in core/modules/node/tests/src/Functional/NodeTranslationUITest.php
Tests that translations are rendered properly.

File

core/modules/node/tests/src/Functional/NodeTranslationUITest.php, line 159

Class

NodeTranslationUITest
Tests the Node Translation UI.

Namespace

Drupal\Tests\node\Functional

Code

protected function getNewEntityValues($langcode) {
  return [
    'title' => [
      [
        'value' => $this
          ->randomMachineName(),
      ],
    ],
  ] + parent::getNewEntityValues($langcode);
}