mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-12 10:07:42 -04:00
Return an empty Item_Model when item::find_by_path fails
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user