Lines Matching refs:user_service

47         $user_service = new UserService();
49 $user = $user_service->create('user', 'User', 'user@example.com', 'secret');
56 $user_service = new UserService();
57 $user = $user_service->create('user', 'User', 'user@example.com', 'secret');
59 $user_service->delete($user);
61 self::assertNull($user_service->find($user_id));
66 $user_service = new UserService();
67 $user = $user_service->find(999);
74 $user_service = new UserService();
75 $user1 = $user_service->create('user', 'User', 'user@example.com', 'secret');
76 $user2 = $user_service->find($user1->id());
83 $user_service = new UserService();
84 $user1 = $user_service->create('user', 'User', 'user@example.com', 'secret');
85 $user2 = $user_service->findByEmail($user1->email());
92 $user_service = new UserService();
93 $user1 = $user_service->create('user', 'User', 'user@example.com', 'secret');
94 $user2 = $user_service->findByUserName($user1->userName());
101 $user_service = new UserService();
102 $user1 = $user_service->create('user', 'User', 'user@example.com', 'secret');
103 $user2 = $user_service->findByIdentifier($user1->userName());
104 $user3 = $user_service->findByIdentifier($user1->email());
112 $user_service = new UserService();
113 $user = $user_service->create('user', 'User', 'user@example.com', 'secret');
119 $users = $user_service->findByIndividual($indi);
127 $user_service = new UserService();
128 $user1 = $user_service->create('bbbbb', 'BBBBB', 'bbbbb@example.com', 'secret');
129 $user2 = $user_service->create('aaaaa', 'AAAAA', 'aaaaa@example.com', 'secret');
131 $users = $user_service->all();
140 $user_service = new UserService();
141 $user_service->create('user', 'User', 'user@example.com', 'secret');
143 $admin = $user_service->create('admin', 'Admin', 'admin@example.com', 'secret');
146 $users = $user_service->administrators();
154 $user_service = new UserService();
155 $user1 = $user_service->create('user1', 'User1', 'user1@example.com', 'secret');
156 $user2 = $user_service->create('user2', 'User2', 'user2@example.com', 'secret');
157 $user3 = $user_service->create('user3', 'User3', 'user3@example.com', 'secret');
158 $user4 = $user_service->create('user4', 'User4', 'user4@example.com', 'secret');
166 $users = $user_service->managers();
174 $user_service = new UserService();
175 $user1 = $user_service->create('user1', 'User1', 'user1@example.com', 'secret');
176 $user2 = $user_service->create('user2', 'User2', 'user2@example.com', 'secret');
177 $user3 = $user_service->create('user3', 'User3', 'user3@example.com', 'secret');
178 $user4 = $user_service->create('user4', 'User4', 'user4@example.com', 'secret');
186 $users = $user_service->moderators();
194 $user_service = new UserService();
195 $user1 = $user_service->create('user1', 'User1', 'user1@example.com', 'secret');
196 $user2 = $user_service->create('user2', 'User2', 'user2@example.com', 'secret');
197 $user3 = $user_service->create('user3', 'User3', 'user3@example.com', 'secret');
198 $user4 = $user_service->create('user4', 'User4', 'user4@example.com', 'secret');
209 $users = $user_service->unapproved();
215 $users = $user_service->unverified();