summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-18 12:56:49 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-18 12:56:49 -0800
commit92ed5d45e6e81b39f4d6b8621c36b597a1b315d8 (patch)
tree033b55827e287ce2b76a034e5db36c3a7eba4e2a /modules/gallery/tests
parentebb909625c348d4f3e4f91cd743426970835939c (diff)
In item_rename_fails_with_existing_name_test switch validate() to
save() now that Kohana ticket #2504 is resolved.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php3
1 files changed, 1 insertions, 2 deletions
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;