summaryrefslogtreecommitdiff
path: root/modules/comment/tests/Comment_Helper_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 11:18:35 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 11:18:35 -0700
commit749d17ac1688e558f091cd2f5c702a0635d377d1 (patch)
tree3e3ffaafb62b16c6bce9ac7133854369587efcce /modules/comment/tests/Comment_Helper_Test.php
parent0bb2b7659f8cb0c117d01958c7fec95a80e83a02 (diff)
Use the identity interface admin_user to retreive the admin user.
Diffstat (limited to 'modules/comment/tests/Comment_Helper_Test.php')
-rw-r--r--modules/comment/tests/Comment_Helper_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/tests/Comment_Helper_Test.php b/modules/comment/tests/Comment_Helper_Test.php
index c635c3b7..9a8c83f1 100644
--- a/modules/comment/tests/Comment_Helper_Test.php
+++ b/modules/comment/tests/Comment_Helper_Test.php
@@ -77,7 +77,7 @@ class Comment_Helper_Test extends Unit_Test_Case {
public function create_comment_for_user_test() {
$rand = rand();
$root = ORM::factory("item", 1);
- $admin = identity::lookup_user(2);
+ $admin = identity::admin_user();
$comment = comment::create(
$root, $admin, "text_$rand", "name_$rand", "email_$rand", "url_$rand");