-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not change the old behavior of user creation
- Loading branch information
1 parent
46dcb47
commit 988427d
Showing
7 changed files
with
59 additions
and
48 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
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
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
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 |
---|---|---|
|
@@ -140,7 +140,7 @@ public function testAlreadyExistingUser() { | |
} | ||
|
||
/** | ||
* @expectedExceptionMessage Unable to create user due to exception: | ||
* @expectedExceptionMessage Exception Message | ||
* @expectedException \OCP\User\Exceptions\CannotCreateUserException | ||
*/ | ||
public function testUserCreateException() { | ||
|
@@ -151,7 +151,7 @@ public function testUserCreateException() { | |
->willReturn(false); | ||
|
||
$this->userManager->method('createUser') | ||
->willThrowException(new \Exception()); | ||
->willThrowException(new \Exception("Exception Message")); | ||
$this->createUserService->createUser(['username' => 'foo', 'password' => '', 'email' => '[email protected]']); | ||
} | ||
|
||
|