You are here

protected function ShortcutTranslationUITest::getNewEntityValues in Drupal 8

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

Returns an array of entity field values to be tested.

Overrides ContentTranslationUITestBase::getNewEntityValues

File

core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php, line 67

Class

ShortcutTranslationUITest
Tests the shortcut translation UI.

Namespace

Drupal\Tests\shortcut\Functional

Code

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