summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/user/session.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/user/session.php b/tests/lib/user/session.php
index fb263d876b8..4dc7f29c5b8 100644
--- a/tests/lib/user/session.php
+++ b/tests/lib/user/session.php
@@ -63,10 +63,8 @@ class Session extends \Test\TestCase {
->will($this->returnValue(null));
$backend = $this->getMock('OC_User_Dummy');
- $backend->expects($this->once())
- ->method('userExists')
- ->with('foo')
- ->will($this->returnValue(true));
+ $backend->expects($this->never())
+ ->method('userExists');
$manager = new \OC\User\Manager();
$manager->registerBackend($backend);