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:
Tim Almdal
2009-03-11 00:41:51 +00:00
parent 2ce44b6b08
commit ee2407cde2
2 changed files with 16 additions and 0 deletions

View File

@@ -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