diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-11 00:41:51 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-11 00:41:51 +0000 |
commit | ee2407cde2b45aa667d30ca24f483c729340f462 (patch) | |
tree | a69166a00e02bd1cd22b8d85e25e1c6117b4445e /core/tests/Access_Helper_Test.php | |
parent | 2ce44b6b08f4623da872574867f7b7498ef5a1c4 (diff) |
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.
Diffstat (limited to 'core/tests/Access_Helper_Test.php')
-rw-r--r-- | core/tests/Access_Helper_Test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/tests/Access_Helper_Test.php b/core/tests/Access_Helper_Test.php index 0c39f841..4b53c0ce 100644 --- a/core/tests/Access_Helper_Test.php +++ b/core/tests/Access_Helper_Test.php @@ -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 |