-
-
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.
Signed-off-by: Hamza Mahjoubi <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
28 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 |
---|---|---|
|
@@ -1617,7 +1617,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(); | ||
} | ||
|
||
|
@@ -1676,13 +1676,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() | ||
|
@@ -1914,7 +1914,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() | ||
|
@@ -2001,7 +2001,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