fix tests

This commit is contained in:
Bernhard Posselt 2014-12-16 20:02:30 +01:00
parent 8689fe1a2e
commit 8a58ff0fdf
1 changed files with 2 additions and 4 deletions

View File

@ -63,10 +63,8 @@ class Session extends \Test\TestCase {
->will($this->returnValue(null)); ->will($this->returnValue(null));
$backend = $this->getMock('OC_User_Dummy'); $backend = $this->getMock('OC_User_Dummy');
$backend->expects($this->once()) $backend->expects($this->never())
->method('userExists') ->method('userExists');
->with('foo')
->will($this->returnValue(true));
$manager = new \OC\User\Manager(); $manager = new \OC\User\Manager();
$manager->registerBackend($backend); $manager->registerBackend($backend);