protected function MicrodataCoreFieldsTestCase::getInstances in Microdata 7
Implements MicrodataFieldTestCase::getInstances().
Overrides MicrodataFieldTestCase::getInstances
File
- ./
microdata.test, line 217 - Tests for microdata.module.
Class
Code
protected function getInstances() {
$instances = array(
// Text instance.
array(
'field_name' => $this->textFieldName,
'entity_type' => $this->entityType,
'bundle' => $this->bundleType,
'display' => array(
'teaser' => array(
'type' => 'text_default',
),
),
),
// List instance.
array(
'field_name' => $this->listFieldName,
'entity_type' => $this->entityType,
'bundle' => $this->bundleType,
'widget' => array(
'type' => 'options_buttons',
),
),
// Number instance.
array(
'field_name' => $this->numberFieldName,
'entity_type' => $this->entityType,
'bundle' => $this->bundleType,
),
// Second taxonomy instance.
array(
'field_name' => $this->keywordsFieldName,
'entity_type' => $this->entityType,
'label' => 'Keywords',
'bundle' => $this->bundleType,
'widget' => array(
'type' => 'taxonomy_autocomplete',
),
'display' => array(
'default' => array(
'type' => 'taxonomy_term_reference_link',
),
),
),
);
return $instances;
}