You are here

protected function FeaturesUserTestCase::_test_field in Features 7

File

tests/features.test, line 88

Class

FeaturesUserTestCase
User permission component tests for Features

Code

protected function _test_field($op = 'load') {
  switch ($op) {
    case 'load':
      return field_info_instance('node', 'field_features_test', 'features_test');
    case 'override':
      $field_instance = field_info_instance('node', 'field_features_test', 'features_test');
      $field_instance['label'] = 'Foo bar';
      field_update_instance($field_instance);
      break;
  }
}