You are here

protected function FeaturesUserTestCase::_test_content in Features 6

File

tests/features.test, line 92

Class

FeaturesUserTestCase
User permission component tests for Features

Code

protected function _test_content($op = 'load') {
  switch ($op) {
    case 'load':
      return content_fields('field_features_test', 'features_test');
    case 'override':
      module_load_include('inc', 'content', 'includes/content.crud');
      $field = content_fields('field_features_test', 'features_test');
      $field['widget']['label'] = 'Foo bar';
      content_field_instance_update($field, TRUE);
      break;
  }
}