diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-10 21:56:46 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-10 21:56:46 +0000 |
commit | 253ae3e0034bc94a7d2d072bb9bee38aa9403ad1 (patch) | |
tree | d1029dea8e7345fbcf951214946607138308d605 | |
parent | ffa39aabb99e1b9b7f475f5afee523c821e34112 (diff) |
Use alternate form of ORM::factory to reduce code.
-rw-r--r-- | modules/user/tests/User_Installer_Test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/tests/User_Installer_Test.php b/modules/user/tests/User_Installer_Test.php index 2acfcaeb..4b653307 100644 --- a/modules/user/tests/User_Installer_Test.php +++ b/modules/user/tests/User_Installer_Test.php @@ -24,7 +24,7 @@ */ class User_Installer_Test extends Unit_Test_Case { public function install_creates_admin_user_test() { - $user = ORM::factory('user')->find(1); + $user = ORM::factory("user", 1); $this->assert_equal("Gallery Administrator", $user->display_name); $this->assert_equal("admin", $user->name); @@ -36,7 +36,7 @@ class User_Installer_Test extends Unit_Test_Case { } public function install_creates_admininstrator_group_test() { - $group = ORM::factory('group')->find(1); + $group = ORM::factory("group", 1); $this->assert_equal("administrator", $group->name); $users = $group->users->as_array(); @@ -45,7 +45,7 @@ class User_Installer_Test extends Unit_Test_Case { } public function install_creates_registered_group_test() { - $group = ORM::factory('group')->find(2); + $group = ORM::factory("group", 2); $this->assert_equal("registered", $group->name); $users = $group->users->as_array(); |