summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Item_Model_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-20 22:45:19 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-20 22:45:19 -0800
commit995faaa27fc870589e346f7ef65e0bd7cabfe047 (patch)
tree3555f1105e69be5e9639489a59f8c4205c0a7e12 /modules/gallery/tests/Item_Model_Test.php
parent2a41e27d49bd9f5f341ee201ec3878767a9271ec (diff)
Stop using MY_ORM::original(). It's got very odd semantics and we are
not capturing all cases for setting and resetting $original, which leads to some weird and hard to reproduce behavior. Instead, if we need the original just reload it from the database. This may result in a somewhat excessive load in places, but we'll have to fix that in a later optimization pass.
Diffstat (limited to 'modules/gallery/tests/Item_Model_Test.php')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index 9ea74b16..efad660e 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -139,6 +139,7 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
try {
$item->name = $item2->name;
+ print "SAVE\n";
$item->save();
} catch (ORM_Validation_Exception $e) {
$this->assert_true(in_array("conflict", $e->validation->errors()));