protected function EntityReferenceFieldTranslatedReferenceViewTest::setUpContentTypes in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\EntityReferenceCode
protected function setUpContentTypes() {
$this->referrerType = $this
->drupalCreateContentType(array(
'type' => 'referrer',
'name' => 'Referrer',
));
$this->referencedType = $this
->drupalCreateContentType(array(
'type' => 'referenced_page',
'name' => 'Referenced Page',
));
}