diff options
Diffstat (limited to 'modules/field/tests')
-rw-r--r-- | modules/field/tests/field.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index 7468653b1..d25f120fc 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -2576,8 +2576,9 @@ class FieldTranslationsTestCase extends FieldTestCase { field_create_instance($instance); $this->instance = field_read_instance('test_entity', $this->field_name, 'test_bundle'); + require_once DRUPAL_ROOT . '/includes/locale.inc'; for ($i = 0; $i < 3; ++$i) { - locale_inc_callback('locale_add_language', 'l' . $i, $this->randomString(), $this->randomString()); + locale_add_language('l' . $i, $this->randomString(), $this->randomString()); } } |