Use the identity interface admin_user to retreive the admin user.

This commit is contained in:
Tim Almdal
2009-10-29 11:18:35 -07:00
parent 0bb2b7659f
commit 749d17ac16
2 changed files with 2 additions and 2 deletions

View File

@@ -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");