You are here

protected function UserTranslationUITest::getNewEntityValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/UserTranslationUITest.php \Drupal\user\Tests\UserTranslationUITest::getNewEntityValues()

Returns an array of entity field values to be tested.

Overrides ContentTranslationUITestBase::getNewEntityValues

File

core/modules/user/src/Tests/UserTranslationUITest.php, line 52
Contains \Drupal\user\Tests\UserTranslationUITest.

Class

UserTranslationUITest
Tests the User Translation UI.

Namespace

Drupal\user\Tests

Code

protected function getNewEntityValues($langcode) {

  // User name is not translatable hence we use a fixed value.
  return array(
    'name' => $this->name,
  ) + parent::getNewEntityValues($langcode);
}