You are here

protected function BlockContentTranslationUITest::getNewEntityValues in Drupal 9

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

Returns an array of entity field values to be tested.

Overrides ContentTranslationUITestBase::getNewEntityValues

1 call to BlockContentTranslationUITest::getNewEntityValues()
BlockContentTranslationUITest::doTestBasicTranslation in core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
Tests the basic translation workflow.

File

core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php, line 86

Class

BlockContentTranslationUITest
Tests the block content translation UI.

Namespace

Drupal\Tests\block_content\Functional

Code

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