diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-03 17:40:05 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-09 11:10:58 +0100 |
commit | fc6b3902af03b770bc1de29cae50fb00022f355d (patch) | |
tree | dd345a51a1730c97fc69c168d6d11486ab2e0942 /apps/user_ldap/tests/AccessTest.php | |
parent | 59c05d54472aeed458611341970a72e42e5b9e6a (diff) | |
download | nextcloud-server-fc6b3902af03b770bc1de29cae50fb00022f355d.tar.gz nextcloud-server-fc6b3902af03b770bc1de29cae50fb00022f355d.zip |
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests/AccessTest.php')
-rw-r--r-- | apps/user_ldap/tests/AccessTest.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/user_ldap/tests/AccessTest.php b/apps/user_ldap/tests/AccessTest.php index 047fe7c3fb0..b730ccf2b31 100644 --- a/apps/user_ldap/tests/AccessTest.php +++ b/apps/user_ldap/tests/AccessTest.php @@ -353,8 +353,9 @@ class AccessTest extends TestCase { $userMock->expects($this->never()) ->method('processAttributes'); - $this->userManager->expects($this->never()) - ->method('get'); + $this->userManager->expects($this->any()) + ->method('get') + ->willReturn($this->createMock(User::class)); $this->c->expects($this->any()) ->method('getConfig') @@ -402,10 +403,6 @@ class AccessTest extends TestCase { ->will($this->returnValue($userMock)); $configMock = $this->createMock(IConfig::class); - $configMock->expects($this->once()) - ->method('getAppValue') - ->with('core', 'backgroundjobs_mode', $this->anything()) - ->willReturn('ajax'); $this->c->expects($this->any()) ->method('getConfig') |