diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-11 15:37:06 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-11 15:37:06 +0200 |
commit | b41bccd38532a2b806a92055e29926a3e85cfb37 (patch) | |
tree | 65369d3effcc797407d13081646b4a0d5fbd0405 /apps/provisioning_api/tests | |
parent | b25c3beb2f8bb61fbf40b183e425b3d4799c3afa (diff) | |
download | nextcloud-server-b41bccd38532a2b806a92055e29926a3e85cfb37.tar.gz nextcloud-server-b41bccd38532a2b806a92055e29926a3e85cfb37.zip |
Check for userSession->getUser() === null
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r-- | apps/provisioning_api/tests/userstest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/tests/userstest.php b/apps/provisioning_api/tests/userstest.php index 6dd4f623f93..350586f8335 100644 --- a/apps/provisioning_api/tests/userstest.php +++ b/apps/provisioning_api/tests/userstest.php @@ -602,7 +602,7 @@ class UsersTest extends TestCase { $userSession = $this->getMockBuilder('\OCP\IUserSession') ->disableOriginalConstructor() ->getMock(); - $userSession->expects($this->exactly(2)) + $userSession->expects($this->once()) ->method('getUser') ->willReturn($user2); |