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