summaryrefslogtreecommitdiff
path: root/modules/field/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-22 20:53:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-22 20:53:13 +0000
commit420b9c1885420721d93beb2d27c19b5b46ccca9c (patch)
tree252da2f969a3e977c41ff9a8e2fe68d887c2824c /modules/field/tests
parentde8761eb2422762fa12c72cf504db79920497b59 (diff)
downloadbrdo-420b9c1885420721d93beb2d27c19b5b46ccca9c.tar.gz
brdo-420b9c1885420721d93beb2d27c19b5b46ccca9c.tar.bz2
- Patch #332725 by andypost, Damien Tournoud, lilou, Gábor Hojtsy: locale_inc_callback() is a thing of the past.
Diffstat (limited to 'modules/field/tests')
-rw-r--r--modules/field/tests/field.test3
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());
}
}