From 253ae3e0034bc94a7d2d072bb9bee38aa9403ad1 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 10 Nov 2008 21:56:46 +0000 Subject: Use alternate form of ORM::factory to reduce code. --- modules/user/tests/User_Installer_Test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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(); -- cgit v1.2.3