summaryrefslogtreecommitdiff
path: root/modules/locale/locale.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-10 19:06:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-10 19:06:47 +0000
commit6b4aa3080f37c589b7d7cb30fecae450f1ac3abc (patch)
treee25221c463e46fa65c693a35d6cb2a3d51e85ad9 /modules/locale/locale.test
parentdd9b870f7bd1ca44966fec9a82756c00fa01e991 (diff)
downloadbrdo-6b4aa3080f37c589b7d7cb30fecae450f1ac3abc.tar.gz
brdo-6b4aa3080f37c589b7d7cb30fecae450f1ac3abc.tar.bz2
#480424 by JamesAn: Update locale module to use drupal_static().
Diffstat (limited to 'modules/locale/locale.test')
-rw-r--r--modules/locale/locale.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale/locale.test b/modules/locale/locale.test
index 061bf04f3..2e52dc060 100644
--- a/modules/locale/locale.test
+++ b/modules/locale/locale.test
@@ -201,7 +201,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
// Add string.
t($name, array(), array('langcode' => $langcode));
// Reset locale cache.
- locale(NULL, NULL, NULL, TRUE);
+ locale_reset();
$this->assertText($langcode, t('Language code found.'));
$this->assertText($name, t('Name found.'));
$this->assertText($native, t('Native found.'));
@@ -456,7 +456,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
// Add string.
t($name, array(), array('langcode' => $langcode));
// Reset locale cache.
- locale(NULL, NULL, NULL, TRUE);
+ locale_reset();
$this->drupalLogout();
// Search for the name.