diff --git a/tests/application/modules/opac/controllers/AbonneControllerChangePasswordTest.php b/tests/application/modules/opac/controllers/AbonneControllerChangePasswordTest.php
index fca5d26bcd8e5628f138ad6cc8be9e8f8980b859..9b2b1f88a7ddecd4a2cb0144d9f4f103a1b64da7 100644
--- a/tests/application/modules/opac/controllers/AbonneControllerChangePasswordTest.php
+++ b/tests/application/modules/opac/controllers/AbonneControllerChangePasswordTest.php
@@ -113,6 +113,11 @@ class AbonneControllerChangePasswordOnKohaWithRestfulTest
               'new_password' => 'test'])
       ->answers(json_encode(['success' => '0', 'reasons' => ['password_too_short' => 1]]))
 
+      ->whenCalled('putData')
+      ->with('http://plage.com/cgi-bin/koha/rest.pl/user/testingtest',
+             ['data' => "[]"])
+      ->answers(json_encode(['success' => '1', 'modified_fields' => []]))
+
       ->whenCalled('putData')
       ->with('http://plage.com/cgi-bin/koha/rest.pl/auth/change_password',
              ['user_name' => 'testingtest',
@@ -364,4 +369,4 @@ class AbonneControllerChangePasswordOnNanookTest extends AbstractControllerTestC
   public function serviceShouldHaveBeenCalledOnNanookServer() {
     $this->assertTrue($this->_mock_web_client->methodHasBeenCalled('postData'));
   }
-}
\ No newline at end of file
+}