You are here

protected function EntityReferenceFieldTranslatedReferenceViewTest::setUpContentTypes 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::setUpContentTypes()

Create content types.

1 call to EntityReferenceFieldTranslatedReferenceViewTest::setUpContentTypes()
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 245
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 setUpContentTypes() {
  $this->referrerType = $this
    ->drupalCreateContentType(array(
    'type' => 'referrer',
    'name' => 'Referrer',
  ));
  $this->referencedType = $this
    ->drupalCreateContentType(array(
    'type' => 'referenced_page',
    'name' => 'Referenced Page',
  ));
}