Sets up Drupal unit test environment.
Overrides DrupalUnitTestBase::setUp
DrupalUnitTestBase::$modules
protected function setUp() {
parent::setUp();
$this
->installSchema('entity_test', array(
'entity_test_mulrev',
'entity_test_mulrev_property_revision',
'entity_test_mulrev_property_data',
));
$this
->installSchema('system', array(
'url_alias',
));
$this
->installConfig(array(
'field',
));
// Auto-create a field for testing.
field_create_field(array(
'field_name' => 'field_test_text',
'type' => 'text',
'cardinality' => 1,
'translatable' => FALSE,
));
$instance = array(
'entity_type' => 'entity_test_mulrev',
'field_name' => 'field_test_text',
'bundle' => 'entity_test_mulrev',
'label' => 'Test text-field',
'widget' => array(
'type' => 'text_textfield',
'weight' => 0,
),
);
field_create_instance($instance);
}