You are here

protected function ContentTranslationUITestBase::getNewEntityValues in Drupal 10

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

Returns an array of entity field values to be tested.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php, line 400

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getNewEntityValues($langcode) {
  return [
    $this->fieldName => [
      [
        'value' => $this
          ->randomMachineName(16),
      ],
    ],
  ];
}