function ContentTranslationUITestBase::getNewEntityValues

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getNewEntityValues()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getNewEntityValues()
  3. 8.9.x core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getNewEntityValues()
  4. 8.9.x 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.

1 method overrides ContentTranslationUITestBase::getNewEntityValues()
MediaTranslationUITest::getNewEntityValues in core/modules/media/tests/src/Functional/MediaTranslationUITest.php
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),
      ],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.