fixing test

This commit is contained in:
Clark Tomlinson 2015-05-11 09:38:23 -04:00
parent 10d7eb56af
commit 9727386d8b
1 changed files with 9 additions and 9 deletions

View File

@ -1303,14 +1303,14 @@ class UsersControllerTest extends \Test\TestCase {
->expects($this->once()) ->expects($this->once())
->method('isEnabledForUser') ->method('isEnabledForUser')
->with( ->with(
$this->equalTo('files_encryption') $this->equalTo('encryption')
) )
->will($this->returnValue(true)); ->will($this->returnValue(true));
$this->container['Config'] $this->container['Config']
->expects($this->once()) ->expects($this->once())
->method('getAppValue') ->method('getAppValue')
->with( ->with(
$this->equalTo('files_encryption'), $this->equalTo('encryption'),
$this->equalTo('recoveryAdminEnabled'), $this->equalTo('recoveryAdminEnabled'),
$this->anything() $this->anything()
) )
@ -1321,8 +1321,8 @@ class UsersControllerTest extends \Test\TestCase {
->method('getUserValue') ->method('getUserValue')
->with( ->with(
$this->anything(), $this->anything(),
$this->equalTo('files_encryption'), $this->equalTo('encryption'),
$this->equalTo('recovery_enabled'), $this->equalTo('recoveryEnabled'),
$this->anything() $this->anything()
) )
->will($this->returnValue('1')); ->will($this->returnValue('1'));
@ -1339,7 +1339,7 @@ class UsersControllerTest extends \Test\TestCase {
$this->container['OCP\\App\\IAppManager'] $this->container['OCP\\App\\IAppManager']
->method('isEnabledForUser') ->method('isEnabledForUser')
->with( ->with(
$this->equalTo('files_encryption') $this->equalTo('encryption')
) )
->will($this->returnValue(true)); ->will($this->returnValue(true));
@ -1358,14 +1358,14 @@ class UsersControllerTest extends \Test\TestCase {
->expects($this->once()) ->expects($this->once())
->method('isEnabledForUser') ->method('isEnabledForUser')
->with( ->with(
$this->equalTo('files_encryption') $this->equalTo('encryption')
) )
->will($this->returnValue(true)); ->will($this->returnValue(true));
$this->container['Config'] $this->container['Config']
->expects($this->once()) ->expects($this->once())
->method('getAppValue') ->method('getAppValue')
->with( ->with(
$this->equalTo('files_encryption'), $this->equalTo('encryption'),
$this->equalTo('recoveryAdminEnabled'), $this->equalTo('recoveryAdminEnabled'),
$this->anything() $this->anything()
) )
@ -1376,8 +1376,8 @@ class UsersControllerTest extends \Test\TestCase {
->method('getUserValue') ->method('getUserValue')
->with( ->with(
$this->anything(), $this->anything(),
$this->equalTo('files_encryption'), $this->equalTo('encryption'),
$this->equalTo('recovery_enabled'), $this->equalTo('recoveryEnabled'),
$this->anything() $this->anything()
) )
->will($this->returnValue('0')); ->will($this->returnValue('0'));