Tests getting processed property values via a computed property.
public function testComputedProperties() {
// Make the test text field processed.
$instance = field_info_instance('entity_test', 'field_test_text', 'entity_test');
$instance['settings']['text_processing'] = 1;
field_update_instance($instance);
$entity = $this
->createTestEntity();
$entity->field_test_text->value = "The <strong>text</strong> text to filter.";
$entity->field_test_text->format = filter_default_format();
$target = "<p>The <strong>text</strong> text to filter.</p>\n";
$this
->assertEqual($entity->field_test_text->processed, $target, 'Text is processed with the default filter.');
// Save and load entity and make sure it still works.
$entity
->save();
$entity = entity_load('entity_test', $entity
->id());
$this
->assertEqual($entity->field_test_text->processed, $target, 'Text is processed with the default filter.');
}