Sets up Drupal unit test environment.
Overrides NormalizerTestBase::setUp
DrupalUnitTestBase::$modules
DrupalUnitTestBase
protected function setUp() {
parent::setUp();
// Create the test field.
$field = array(
'settings' => array(
'target_type' => 'entity_test_mulrev',
),
'field_name' => 'field_test_entity_reference',
'type' => 'entity_reference',
);
field_create_field($field);
// Create the test field instance.
$instance = array(
'entity_type' => 'entity_test_mulrev',
'field_name' => 'field_test_entity_reference',
'bundle' => 'entity_test_mulrev',
);
field_create_instance($instance);
}