diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-09 01:25:03 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-09 01:27:27 -0700 |
commit | 79b4b8bdc606ecd46b258e32b3973511a43d38b0 (patch) | |
tree | 23036d1f0da8d7d84d1aeab6d6a0856c2997e41c | |
parent | 1ee7d24766a3055d4199251f6ce990714b9c3641 (diff) |
update the Access_Helper_Test to use the user::lookup_by_name API method.
-rw-r--r-- | modules/gallery/tests/Access_Helper_Test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/Access_Helper_Test.php b/modules/gallery/tests/Access_Helper_Test.php index 59cec453..72d7e04c 100644 --- a/modules/gallery/tests/Access_Helper_Test.php +++ b/modules/gallery/tests/Access_Helper_Test.php @@ -33,7 +33,7 @@ class Access_Helper_Test extends Unit_Test_Case { } catch (Exception $e) { } try { - $user = ORM::factory("user")->where("name", "access_test")->find(); + $user = user::lookup_by_name("access_test"); if ($user->loaded) { $user->delete(); } @@ -307,7 +307,7 @@ class Access_Helper_Test extends Unit_Test_Case { $group->save(); access::allow($group, "edit", $root); - $user = ORM::factory("user", $user->id); // reload() does not flush related columns + $user = user::lookup($user->id); // reload() does not flush related columns user::set_active($user); // And verify that the user can edit. |