diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-05-05 21:19:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 21:19:28 +0300 |
commit | 0284c0f71797cf2729633f18c5905c23457cd527 (patch) | |
tree | 28131ca9a83c2afe81d5fc57c161a25d9387ec1a /tests | |
parent | 99151a55890727253339f49406e2ceba56db47e4 (diff) | |
parent | 8a2cf5bb68617004d24469c65b68e8b01ca56621 (diff) |
Merge pull request #32276 from nextcloud/fix/ldap_error_handling
Do not dispatch postSetPassword when setPassword fails
Diffstat (limited to 'tests')
-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'); |