From 3b944bca5d912c1a93834340f3e5ce69ee1faafb Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 8 Feb 2009 18:03:31 +0000 Subject: Use the ORM method delete_all to remove selected records from the database instead of calling the Database::query with raw sql. --- core/tests/I18n_Test.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/tests') 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'), -- cgit v1.2.3