summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-21 16:58:54 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-21 16:58:54 -0800
commit2a08cbf76da0f9984c0e182e6c448b516d8d7db3 (patch)
tree25cd5779d26ba8eed61f19b93cd83585aba8ce39 /modules/gallery/tests
parentf493130e59f26d41f090c5ca40e95b416b9b154b (diff)
Return an empty Item_Model when item::find_by_path fails
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Helper_Test.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gallery/tests/Item_Helper_Test.php b/modules/gallery/tests/Item_Helper_Test.php
index 4124e453..0aa7504e 100644
--- a/modules/gallery/tests/Item_Helper_Test.php
+++ b/modules/gallery/tests/Item_Helper_Test.php
@@ -166,8 +166,7 @@ class Item_Helper_Test extends Gallery_Unit_Test_Case {
item::find_by_path("{$level1->name}/{$level2b->name}/{$level3b->name}")->id);
// Verify that we don't get false positives
- $this->assert_same(
- false,
- item::find_by_path("foo/bar/baz"));
+ $this->assert_false(
+ item::find_by_path("foo/bar/baz")->loaded());
}
}