protected function UserTranslationUITest::getNewEntityValues in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()
- 10 core/modules/user/tests/src/Functional/UserTranslationUITest.php \Drupal\Tests\user\Functional\UserTranslationUITest::getNewEntityValues()
Returns an array of entity field values to be tested.
Overrides ContentTranslationUITestBase::getNewEntityValues
1 call to UserTranslationUITest::getNewEntityValues()
- UserTranslationUITest::testTranslatedUserDeletion in core/
modules/ user/ tests/ src/ Functional/ UserTranslationUITest.php - Tests translated user deletion.
File
- core/
modules/ user/ tests/ src/ Functional/ UserTranslationUITest.php, line 68
Class
- UserTranslationUITest
- Tests the User Translation UI.
Namespace
Drupal\Tests\user\FunctionalCode
protected function getNewEntityValues($langcode) {
// User name is not translatable hence we use a fixed value.
return [
'name' => $this->name,
] + parent::getNewEntityValues($langcode);
}