mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-05 19:29:06 -04:00
Fix the test failures. If albums are created manually instead of
calling album::create, then the default sourt column needs to be set to id.
This commit is contained in:
@@ -64,6 +64,10 @@ class Access_Helper_Test extends Unit_Test_Case {
|
||||
$root = ORM::factory("item", 1);
|
||||
$item = ORM::factory("item");
|
||||
$item->type = "album";
|
||||
$item->rand_key = ((float)mt_rand()) / (float)mt_getrandmax();
|
||||
$item->sort_column = "id";
|
||||
$item->sort_order = "ASC";
|
||||
|
||||
$item->add_to_parent($root);
|
||||
|
||||
// Simulate an event
|
||||
|
||||
Reference in New Issue
Block a user