You are here

protected function LinkFieldRdfaTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php \Drupal\rdf\Tests\Field\LinkFieldRdfaTest::setUp()

Set the default field storage backend for fields created during tests.

Overrides FieldRdfaTestBase::setUp

File

core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php, line 29
Contains \Drupal\rdf\Tests\Field\LinkFieldRdfaTest.

Class

LinkFieldRdfaTest
Tests the placement of RDFa in link field formatters.

Namespace

Drupal\rdf\Tests\Field

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createTestField();

  // Add the mapping.
  $mapping = rdf_get_mapping('entity_test', 'entity_test');
  $mapping
    ->setFieldMapping($this->fieldName, array(
    'properties' => array(
      'schema:link',
    ),
  ))
    ->save();
}