You are here

protected property SynonymsWebTestCase::$fields in Synonyms 7

Text fields that can be used for general purpose testing of behaviors.

The var is firstly keyed by either 'enabled' or 'disabled', correspondingly representing whether the behavior is enabled or disabled on that field. And the inner array has 2 keys:

  • field: (array) field definition array
  • instance: (array) instance definition array

Type: array

File

./synonyms.test, line 38
Tests for the Synonyms module.

Class

SynonymsWebTestCase
Base class for all Synonyms web test cases.

Code

protected $fields = array(
  'enabled' => array(
    'field' => array(
      'field_name' => 'text_enabled',
      'type' => 'text',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
    'instance' => array(
      'entity_type' => 'taxonomy_term',
    ),
  ),
  'disabled' => array(
    'field' => array(
      'field_name' => 'text_disabled',
      'type' => 'text',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
    'instance' => array(
      'entity_type' => 'taxonomy_term',
    ),
  ),
);