-
-
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 #48474 from nextcloud/backport/47846/stable30
- Loading branch information
Showing
3 changed files
with
31 additions
and
31 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 |
---|---|---|
|
@@ -1742,7 +1742,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(); | ||
} | ||
|
||
|
@@ -1801,13 +1801,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() | ||
|
@@ -2039,7 +2039,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() | ||
|
@@ -2126,7 +2126,7 @@ public function testEditUserAdminUserSelfEditChangeValidQuota() { | |
public function testEditUserAdminUserSelfEditChangeInvalidQuota() { | ||
$this->expectException(\OCP\AppFramework\OCS\OCSException::class); | ||
$this->expectExceptionMessage('Invalid quota value: ABC'); | ||
$this->expectExceptionCode(102); | ||
$this->expectExceptionCode(101); | ||
|
||
$loggedInUser = $this->getMockBuilder(IUser::class)->disableOriginalConstructor()->getMock(); | ||
$loggedInUser | ||
|
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