File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ public function testForceGlobalPasswordReset(): void
121121 * @phpstan-var UserIdentityModel
122122 */
123123 $ identities = model (UserIdentityModel::class);
124+ $ identities ->forceGlobalPasswordReset ();
124125
125- $ this ->assertNotFalse ($ identities ->forceGlobalPasswordReset ());
126126 $ this ->assertTrue ($ user ->requiresPasswordReset ());
127127 }
128128}
Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ public function testForceMultiplePasswordReset(): void
9393 $ userIds [] = $ row ->user_id ;
9494 }
9595
96- $ this ->assertNotFalse ($ identities ->forceMultiplePasswordReset ($ userIds ));
96+ $ identities ->forceMultiplePasswordReset ($ userIds );
97+
98+ /**
99+ * @phpstan-var UserModel
100+ */
101+ $ users = model (UserModel::class);
102+ $ first_user = $ users ->findById ($ userIds [0 ]);
103+ $ last_user = $ users ->findById ($ userIds [9 ]);
104+
105+ $ this ->assertTrue ($ first_user ->requiresPasswordReset ());
106+ $ this ->assertTrue ($ last_user ->requiresPasswordReset ());
97107 }
98108}
You can’t perform that action at this time.
0 commit comments