diff options
Diffstat (limited to 'apps/provisioning_api/tests/Controller/UsersControllerTest.php')
-rw-r--r-- | apps/provisioning_api/tests/Controller/UsersControllerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php index fec7fc9f135..d508670d4f6 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -500,9 +500,13 @@ class UsersControllerTest extends TestCase { ->method('userExists') ->with('NewUser') ->willReturn(false); + $newUser = $this->createMock(IUser::class); + $newUser->expects($this->once()) + ->method('setEMailAddress'); $this->userManager ->expects($this->once()) - ->method('createUser'); + ->method('createUser') + ->willReturn($newUser); $this->logger ->expects($this->once()) ->method('info') |