summaryrefslogtreecommitdiff
path: root/core/tests/Access_Helper_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-11 00:41:51 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-11 00:41:51 +0000
commitee2407cde2b45aa667d30ca24f483c729340f462 (patch)
treea69166a00e02bd1cd22b8d85e25e1c6117b4445e /core/tests/Access_Helper_Test.php
parent2ce44b6b08f4623da872574867f7b7498ef5a1c4 (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.php4
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