-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48472 from nextcloud/backport/47846/stable28
[stable28] fix: provision api's status codes
- Loading branch information
Showing
3 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1650,7 +1650,7 @@ public function testEditUserRegularUserSelfEditAddAdditionalEmailMainAddress(): | |
->with($userAccount); | ||
|
||
$this->expectException(OCSException::class); | ||
$this->expectExceptionCode(102); | ||
$this->expectExceptionCode(101); | ||
$this->api->editUser('UserToEdit', 'additional_mail', '[email protected]')->getData(); | ||
} | ||
|
||
|
@@ -1709,13 +1709,13 @@ public function testEditUserRegularUserSelfEditAddAdditionalEmailDuplicate(): vo | |
->with($userAccount); | ||
|
||
$this->expectException(OCSException::class); | ||
$this->expectExceptionCode(102); | ||
$this->expectExceptionCode(101); | ||
$this->api->editUser('UserToEdit', 'additional_mail', '[email protected]')->getData(); | ||
} | ||
|
||
public function testEditUserRegularUserSelfEditChangeEmailInvalid() { | ||
$this->expectException(\OCP\AppFramework\OCS\OCSException::class); | ||
$this->expectExceptionCode(102); | ||
$this->expectExceptionCode(101); | ||
|
||
$loggedInUser = $this->getMockBuilder(IUser::class) | ||
->disableOriginalConstructor() | ||
|
@@ -1947,7 +1947,7 @@ public function testEditUserRegularUserSelfEditChangePassword() { | |
|
||
public function testEditUserRegularUserSelfEditChangeQuota() { | ||
$this->expectException(\OCP\AppFramework\OCS\OCSException::class); | ||
$this->expectExceptionCode(103); | ||
$this->expectExceptionCode(113); | ||
|
||
$loggedInUser = $this->getMockBuilder(IUser::class) | ||
->disableOriginalConstructor() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters