From 92ed5d45e6e81b39f4d6b8621c36b597a1b315d8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 18 Jan 2010 12:56:49 -0800 Subject: In item_rename_fails_with_existing_name_test switch validate() to save() now that Kohana ticket #2504 is resolved. --- modules/gallery/tests/Item_Model_Test.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/gallery/tests/Item_Model_Test.php') diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php index b41740d6..12f69a34 100644 --- a/modules/gallery/tests/Item_Model_Test.php +++ b/modules/gallery/tests/Item_Model_Test.php @@ -143,8 +143,7 @@ class Item_Model_Test extends Unit_Test_Case { try { $item->name = $item2->name; - $item->validate(); // @todo: switch this to save() once - // http://dev.kohanaphp.com/issues/2504 is fixed. + $item->save(); } catch (ORM_Validation_Exception $e) { $this->assert_true(in_array("conflict", $e->validation->errors())); return; -- cgit v1.2.3