diff options
author | Louis Chemineau <louis@chmn.me> | 2022-05-05 11:21:20 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-05-05 17:21:23 +0200 |
commit | 8a2cf5bb68617004d24469c65b68e8b01ca56621 (patch) | |
tree | 58cb1836b328b159be549f5759245db9fbf1f6d5 /tests/Core/Controller | |
parent | d3efd40a24be45a2a38a904c111d10fa4de01f81 (diff) | |
download | nextcloud-server-8a2cf5bb68617004d24469c65b68e8b01ca56621.tar.gz nextcloud-server-8a2cf5bb68617004d24469c65b68e8b01ca56621.zip |
Do not dispatch postSetPassword when setPassword fails
Also Improve error message when setPassword fails
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r-- | tests/Core/Controller/ChangePasswordControllerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Core/Controller/ChangePasswordControllerTest.php b/tests/Core/Controller/ChangePasswordControllerTest.php index 190afd3be47..2d7292f6801 100644 --- a/tests/Core/Controller/ChangePasswordControllerTest.php +++ b/tests/Core/Controller/ChangePasswordControllerTest.php @@ -138,6 +138,9 @@ class ChangePasswordControllerTest extends \Test\TestCase { $expects = [ 'status' => 'error', + 'data' => [ + 'message' => 'Unable to change personal password', + ], ]; $res = $this->controller->changePersonalPassword('old'); @@ -163,6 +166,9 @@ class ChangePasswordControllerTest extends \Test\TestCase { $expects = new JSONResponse([ 'status' => 'error', + 'data' => [ + 'message' => 'Unable to change personal password', + ], ]); $actual = $this->controller->changePersonalPassword('old', 'new'); |