protected function ContentTranslationUITestBase::getNewEntityValues in Drupal 8
Same name in this branch
- 8 core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getNewEntityValues()
- 8 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 call to ContentTranslationUITestBase::getNewEntityValues()
- ContentTranslationUITestBase::doTestBasicTranslation in core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php - Tests the basic translation workflow.
File
- core/
modules/ content_translation/ src/ Tests/ ContentTranslationUITestBase.php, line 393
Class
- ContentTranslationUITestBase
- Tests the Content Translation UI.
Namespace
Drupal\content_translation\TestsCode
protected function getNewEntityValues($langcode) {
return [
$this->fieldName => [
[
'value' => $this
->randomMachineName(16),
],
],
];
}