You are here

protected function EntityReferenceFieldTranslatedReferenceViewTest::createContent in Zircon Profile 8

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

Creates a test subject contents, with translation.

1 call to EntityReferenceFieldTranslatedReferenceViewTest::createContent()
EntityReferenceFieldTranslatedReferenceViewTest::setUp in core/modules/field/src/Tests/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/field/src/Tests/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php, line 186
Contains \Drupal\field\Tests\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest.

Class

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

Namespace

Drupal\field\Tests\EntityReference

Code

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