function ViewsHandlerFilterTest::setUp
Overrides ViewsSqlTest::setUp
File
-
tests/
views_handler_filter.test, line 27
Class
- ViewsHandlerFilterTest
- Tests filter handler.
Code
public function setUp(array $modules = array()) {
parent::setUp($modules);
// Assign vocabulary 'tag' to user entity.
$field_definition = field_read_field('field_tags');
$instance_definition = array(
'field_name' => $field_definition['field_name'],
'entity_type' => 'user',
'bundle' => 'user',
'widget' => array(
'type' => 'taxonomy_autocomplete',
),
'display' => array(
'default' => array(
'type' => 'taxonomy_term_reference_link',
'weight' => 10,
),
'teaser' => array(
'type' => 'taxonomy_term_reference_link',
'weight' => 10,
),
),
);
field_create_instance($instance_definition);
}