File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ public function forceMultiplePasswordReset(array $userIds): void
341341 $ this ->set ('force_reset ' , 1 );
342342 $ return = $ this ->update ();
343343
344- return $ this ->checkQueryReturn ($ return );
344+ $ this ->checkQueryReturn ($ return );
345345 }
346346
347347 /**
@@ -359,7 +359,7 @@ public function forceGlobalPasswordReset(): void
359359 $ this ->set ('force_reset ' , 1 );
360360 $ return = $ this ->update ();
361361
362- return $ this ->checkQueryReturn ($ return );
362+ $ this ->checkQueryReturn ($ return );
363363 }
364364
365365 public function fake (Generator &$ faker ): UserIdentity
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ public function testForceGlobalPasswordReset(): void
122122 */
123123 $ identities = model (UserIdentityModel::class);
124124
125- $ response = $ identities ->forceGlobalPasswordReset ();
126- $ this ->assertTrue ($ response );
125+ $ this ->assertNotFalse ($ identities ->forceGlobalPasswordReset ());
127126 $ this ->assertTrue ($ user ->requiresPasswordReset ());
128127 }
129128}
Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ public function testForceMultiplePasswordReset(): void
9393 $ userIds [] = $ row ->user_id ;
9494 }
9595
96- $ response = $ identities ->forceMultiplePasswordReset ($ userIds );
97- $ this ->assertTrue ($ response );
96+ $ this ->assertNotFalse ($ identities ->forceMultiplePasswordReset ($ userIds ));
9897 }
9998}
You can’t perform that action at this time.
0 commit comments