summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/tests/I18n_Test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/tests/I18n_Test.php b/core/tests/I18n_Test.php
index e621c0e3..20f65528 100644
--- a/core/tests/I18n_Test.php
+++ b/core/tests/I18n_Test.php
@@ -28,8 +28,9 @@ class I18n_Test extends Unit_Test_Case {
'locale_dir' => VARPATH . 'locale/');
$this->i18n = I18n::instance($config);
- $db = Database::instance();
- $db->query("DELETE FROM `incoming_translations` WHERE `locale` = 'te_ST'");
+ ORM::factory("incoming_translation")
+ ->where("locale", "te_ST")
+ ->delete_all();
$messages_de_DE = array(
array('Hello world', 'Hallo Welt'),