diff options
Diffstat (limited to 'modules/field/tests/field.test')
-rw-r--r-- | modules/field/tests/field.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index 739ddbe99..8004178eb 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -1119,8 +1119,11 @@ class FieldInfoTestCase extends FieldTestCase { 'test_setting' => 999))); field_create_instance($instance); + $info = entity_get_info('test_entity'); $instances = field_info_instances('test_entity', $instance['bundle']); - $this->assertEqual(count($instances), 1, t('One instance shows up in info when attached to a bundle.')); + $this->assertEqual(count($instances), 1, format_string('One instance shows up in info when attached to a bundle on a @label.', array( + '@label' => $info['label'] + ))); $this->assertTrue($instance < $instances[$instance['field_name']], t('Instance appears in info correctly')); // Test a valid entity type but an invalid bundle. |