@@ -153,7 +153,7 @@ public function testResetFormTokenError() {
153153 ->willReturn ($ this ->existingUser );
154154 $ this ->verificationToken ->expects ($ this ->once ())
155155 ->method ('check ' )
156- ->with ('12345:MySecretToken ' , $ this ->existingUser , 'lostpassword ' )
156+ ->with ('12345:MySecretToken ' , $ this ->existingUser , 'lostpassword ' , ' test@example.com ' )
157157 ->willThrowException (new InvalidTokenException (InvalidTokenException::TOKEN_DECRYPTION_ERROR ));
158158
159159 $ response = $ this ->lostController ->resetform ('12345:MySecretToken ' , 'ValidTokenUser ' );
@@ -174,7 +174,7 @@ public function testResetFormValidToken() {
174174 ->willReturn ($ this ->existingUser );
175175 $ this ->verificationToken ->expects ($ this ->once ())
176176 ->method ('check ' )
177- ->with ('MySecretToken ' , $ this ->existingUser , 'lostpassword ' );
177+ ->with ('MySecretToken ' , $ this ->existingUser , 'lostpassword ' , ' test@example.com ' );
178178
179179 $ response = $ this ->lostController ->resetform ('MySecretToken ' , 'ValidTokenUser ' );
180180 $ expectedResponse = new TemplateResponse ('core ' ,
@@ -513,6 +513,9 @@ public function testSetPasswordForDisabledUser() {
513513 ->willReturn (false );
514514 $ user ->expects ($ this ->never ())
515515 ->method ('setPassword ' );
516+ $ user ->expects ($ this ->any ())
517+ ->method ('getEMailAddress ' )
518+ ->willReturn ('random@example.org ' );
516519
517520 $ this ->config ->method ('getUserValue ' )
518521 ->with ('ValidTokenUser ' , 'core ' , 'lostpassword ' , null )
0 commit comments