@@ -164,11 +164,11 @@ public function testCreateUserByJoinGoupByPI($user_to_create_args, $expected_uid
164164 $ pi_group = $ USER ->getPIGroup ();
165165 $ gid = $ pi_group ->gid ;
166166 switchUser (...$ user_to_create_args );
167- $ this -> assertTrue (!$ USER ->exists ());
167+ assert (!$ USER ->exists ());
168168 $ newOrg = new UnityOrg ($ SSO ["org " ], $ LDAP , $ SQL , $ MAILER , $ REDIS , $ WEBHOOK );
169- $ this -> assertTrue (!$ newOrg ->exists ());
170- $ this -> assertTrue ($ pi_group ->exists ());
171- $ this -> assertTrue (!$ pi_group ->memberExists ($ USER ));
169+ assert (!$ newOrg ->exists ());
170+ assert ($ pi_group ->exists ());
171+ assert (!$ pi_group ->memberExists ($ USER ));
172172 $ this ->assertRequestedMembership (false , $ gid );
173173 try {
174174 $ this ->requestGroupMembership ($ pi_group ->gid );
@@ -180,14 +180,14 @@ public function testCreateUserByJoinGoupByPI($user_to_create_args, $expected_uid
180180 // } catch(Exception) {
181181 // $second_request_failed = true;
182182 // }
183- // $this->assertTrue ($second_request_failed);
183+ // assert ($second_request_failed);
184184 $ this ->assertRequestedMembership (true , $ gid );
185185
186186 $ this ->cancelAllRequests ();
187187 $ this ->assertRequestedMembership (false , $ gid );
188188
189189 $ this ->requestGroupMembership ($ pi_group ->gid );
190- $ this -> assertTrue ($ pi_group ->requestExists ($ USER ));
190+ assert ($ pi_group ->requestExists ($ USER ));
191191 $ this ->assertRequestedMembership (true , $ gid );
192192
193193 $ REDIS ->flushAll (); // regression test: flush used to break requests
@@ -197,11 +197,11 @@ public function testCreateUserByJoinGoupByPI($user_to_create_args, $expected_uid
197197 $ this ->approveUserByPI ($ approve_uid );
198198 switchUser (...$ user_to_create_args );
199199
200- $ this -> assertTrue (!$ pi_group ->requestExists ($ USER ));
200+ assert (!$ pi_group ->requestExists ($ USER ));
201201 $ this ->assertRequestedMembership (false , $ gid );
202- $ this -> assertTrue ($ pi_group ->memberExists ($ USER ));
203- $ this -> assertTrue ($ USER ->exists ());
204- $ this -> assertTrue ($ newOrg ->exists ());
202+ assert ($ pi_group ->memberExists ($ USER ));
203+ assert ($ USER ->exists ());
204+ assert ($ newOrg ->exists ());
205205
206206 $ user_entry = $ LDAP ->getUserEntry ($ approve_uid );
207207 $ qualified_user_group_entry = $ LDAP ->getGroupEntry ($ approve_uid );
@@ -217,9 +217,9 @@ public function testCreateUserByJoinGoupByPI($user_to_create_args, $expected_uid
217217 // } catch(Exception) {
218218 // $third_request_failed = true;
219219 // }
220- // $this->assertTrue ($third_request_failed);
220+ // assert ($third_request_failed);
221221 $ this ->assertRequestedMembership (false , $ gid );
222- $ this -> assertTrue (!$ pi_group ->requestExists ($ USER ));
222+ assert (!$ pi_group ->requestExists ($ USER ));
223223 } finally {
224224 switchUser (...$ user_to_create_args );
225225 $ this ->ensureOrgGroupDoesNotExist ();
@@ -235,25 +235,25 @@ public function testCreateMultipleUsersByJoinGoupByPI()
235235 switchUser (...$ pi_user_args );
236236 $ pi_group = $ USER ->getPIGroup ();
237237 $ gid = $ pi_group ->gid ;
238- $ this -> assertTrue ($ pi_group ->exists ());
238+ assert ($ pi_group ->exists ());
239239 $ users_to_create_args = getNonexistentUsersWithExistentOrg ();
240240 try {
241241 foreach ($ users_to_create_args as $ user_to_create_args ) {
242242 switchUser (...$ user_to_create_args );
243- $ this -> assertTrue (!$ USER ->exists ());
244- $ this -> assertTrue (!$ pi_group ->memberExists ($ USER ));
243+ assert (!$ USER ->exists ());
244+ assert (!$ pi_group ->memberExists ($ USER ));
245245 $ this ->assertRequestedMembership (false , $ gid );
246246 $ this ->requestGroupMembership ($ pi_group ->gid );
247247 $ this ->assertRequestedMembership (true , $ gid );
248248 $ approve_uid = $ USER ->uid ;
249249 switchUser (...$ pi_user_args );
250- // $this->assertTrue (!$pi_group->memberExists($USER));
250+ // assert (!$pi_group->memberExists($USER));
251251 $ this ->approveUserByPI ($ approve_uid );
252252 switchUser (...$ user_to_create_args );
253- $ this -> assertTrue (!$ pi_group ->requestExists ($ USER ));
253+ assert (!$ pi_group ->requestExists ($ USER ));
254254 $ this ->assertRequestedMembership (false , $ gid );
255- $ this -> assertTrue ($ pi_group ->memberExists ($ USER ));
256- $ this -> assertTrue ($ USER ->exists ());
255+ assert ($ pi_group ->memberExists ($ USER ));
256+ assert ($ USER ->exists ());
257257 }
258258 } finally {
259259 foreach ($ users_to_create_args as $ user_to_create_args ) {
@@ -272,11 +272,11 @@ public function testCreateUserByJoinGoupByAdmin($user_to_create_args, $expected_
272272 $ pi_group = $ USER ->getPIGroup ();
273273 $ gid = $ pi_group ->gid ;
274274 switchUser (...$ user_to_create_args );
275- $ this -> assertTrue (!$ USER ->exists ());
275+ assert (!$ USER ->exists ());
276276 $ newOrg = new UnityOrg ($ SSO ["org " ], $ LDAP , $ SQL , $ MAILER , $ REDIS , $ WEBHOOK );
277- $ this -> assertTrue (!$ newOrg ->exists ());
278- $ this -> assertTrue ($ pi_group ->exists ());
279- $ this -> assertTrue (!$ pi_group ->memberExists ($ USER ));
277+ assert (!$ newOrg ->exists ());
278+ assert ($ pi_group ->exists ());
279+ assert (!$ pi_group ->memberExists ($ USER ));
280280 $ this ->assertRequestedMembership (false , $ gid );
281281 try {
282282 $ this ->requestGroupMembership ($ pi_group ->gid );
@@ -288,14 +288,14 @@ public function testCreateUserByJoinGoupByAdmin($user_to_create_args, $expected_
288288 // } catch(Exception) {
289289 // $second_request_failed = true;
290290 // }
291- // $this->assertTrue ($second_request_failed);
291+ // assert ($second_request_failed);
292292 $ this ->assertRequestedMembership (true , $ gid );
293293
294294 $ this ->cancelAllRequests ();
295295 $ this ->assertRequestedMembership (false , $ gid );
296296
297297 $ this ->requestGroupMembership ($ pi_group ->getOwner ()->getMail ());
298- $ this -> assertTrue ($ pi_group ->requestExists ($ USER ));
298+ assert ($ pi_group ->requestExists ($ USER ));
299299 $ this ->assertRequestedMembership (true , $ gid );
300300
301301 $ REDIS ->flushAll (); // regression test: flush used to break requests
@@ -305,11 +305,11 @@ public function testCreateUserByJoinGoupByAdmin($user_to_create_args, $expected_
305305 $ this ->approveUserByAdmin ($ gid , $ approve_uid );
306306 switchUser (...$ user_to_create_args );
307307
308- $ this -> assertTrue (!$ pi_group ->requestExists ($ USER ));
308+ assert (!$ pi_group ->requestExists ($ USER ));
309309 $ this ->assertRequestedMembership (false , $ gid );
310- $ this -> assertTrue ($ pi_group ->memberExists ($ USER ));
311- $ this -> assertTrue ($ USER ->exists ());
312- $ this -> assertTrue ($ newOrg ->exists ());
310+ assert ($ pi_group ->memberExists ($ USER ));
311+ assert ($ USER ->exists ());
312+ assert ($ newOrg ->exists ());
313313
314314 $ user_entry = $ LDAP ->getUserEntry ($ approve_uid );
315315 $ qualified_user_group_entry = $ LDAP ->getGroupEntry ($ approve_uid );
@@ -325,9 +325,9 @@ public function testCreateUserByJoinGoupByAdmin($user_to_create_args, $expected_
325325 // } catch(Exception) {
326326 // $third_request_failed = true;
327327 // }
328- // $this->assertTrue ($third_request_failed);
328+ // assert ($third_request_failed);
329329 $ this ->assertRequestedMembership (false , $ gid );
330- $ this -> assertTrue (!$ pi_group ->requestExists ($ USER ));
330+ assert (!$ pi_group ->requestExists ($ USER ));
331331 } finally {
332332 switchUser (...$ user_to_create_args );
333333 $ this ->ensureOrgGroupDoesNotExist ();
@@ -342,10 +342,10 @@ public function testCreateUserByCreateGroup($user_to_create_args, $expected_uid_
342342 global $ USER , $ SSO , $ LDAP , $ SQL , $ MAILER , $ REDIS , $ WEBHOOK ;
343343 switchuser (...$ user_to_create_args );
344344 $ pi_group = $ USER ->getPIGroup ();
345- $ this -> assertTrue (!$ USER ->exists ());
346- $ this -> assertTrue (!$ pi_group ->exists ());
345+ assert (!$ USER ->exists ());
346+ assert (!$ pi_group ->exists ());
347347 $ newOrg = new UnityOrg ($ SSO ["org " ], $ LDAP , $ SQL , $ MAILER , $ REDIS , $ WEBHOOK );
348- $ this -> assertTrue (!$ newOrg ->exists ());
348+ assert (!$ newOrg ->exists ());
349349 try {
350350 $ this ->requestGroupCreation ();
351351 $ this ->assertRequestedPIGroup (true );
@@ -356,7 +356,7 @@ public function testCreateUserByCreateGroup($user_to_create_args, $expected_uid_
356356 // } catch(Exception) {
357357 // $second_request_failed = true;
358358 // }
359- // $this->assertTrue ($second_request_failed);
359+ // assert ($second_request_failed);
360360 $ this ->assertRequestedPIGroup (true );
361361
362362 $ this ->cancelAllRequests ();
@@ -373,9 +373,9 @@ public function testCreateUserByCreateGroup($user_to_create_args, $expected_uid_
373373 switchUser (...$ user_to_create_args );
374374
375375 $ this ->assertRequestedPIGroup (false );
376- $ this -> assertTrue ($ pi_group ->exists ());
377- $ this -> assertTrue ($ USER ->exists ());
378- $ this -> assertTrue ($ newOrg ->exists ());
376+ assert ($ pi_group ->exists ());
377+ assert ($ USER ->exists ());
378+ assert ($ newOrg ->exists ());
379379
380380 $ user_entry = $ LDAP ->getUserEntry ($ approve_uid );
381381 $ qualified_user_group_entry = $ LDAP ->getGroupEntry ($ approve_uid );
@@ -391,7 +391,7 @@ public function testCreateUserByCreateGroup($user_to_create_args, $expected_uid_
391391 // } catch(Exception) {
392392 // $third_request_failed = true;
393393 // }
394- // $this->assertTrue ($third_request_failed);
394+ // assert ($third_request_failed);
395395 $ this ->assertRequestedPIGroup (false );
396396 } finally {
397397 switchUser (...$ user_to_create_args );
0 commit comments