You are here

protected function EntityReferenceFieldTranslatedReferenceViewTest::createContent in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest::createContent()
  2. 9 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest::createContent()

Creates a test subject contents, with translation.

1 call to EntityReferenceFieldTranslatedReferenceViewTest::createContent()
EntityReferenceFieldTranslatedReferenceViewTest::setUp in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php

File

core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php, line 224

Class

EntityReferenceFieldTranslatedReferenceViewTest
Tests the translation of entity reference field display on nodes.

Namespace

Drupal\Tests\field\Functional\EntityReference

Code

protected function createContent() {
  $this->referencedEntityWithTranslation = $this
    ->createReferencedEntityWithTranslation();
  $this->referencedEntityWithoutTranslation = $this
    ->createNotTranslatedReferencedEntity();
}