diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-29 17:18:41 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-30 11:38:53 +0200 |
commit | 70a44621beac44e258b46ff17e1d68d86e18d00d (patch) | |
tree | 17eeb5660f7e74e683cff60cf6b86f8b13ad7446 /apps/encryption/tests/lib/RecoveryTest.php | |
parent | d308ec4f0ea54e8cb0c99228a480da8cb7cf30a8 (diff) | |
download | nextcloud-server-70a44621beac44e258b46ff17e1d68d86e18d00d.tar.gz nextcloud-server-70a44621beac44e258b46ff17e1d68d86e18d00d.zip |
check recovery setting for the right user
Diffstat (limited to 'apps/encryption/tests/lib/RecoveryTest.php')
-rw-r--r-- | apps/encryption/tests/lib/RecoveryTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/lib/RecoveryTest.php b/apps/encryption/tests/lib/RecoveryTest.php index b3fd403949c..5bfafa3a98e 100644 --- a/apps/encryption/tests/lib/RecoveryTest.php +++ b/apps/encryption/tests/lib/RecoveryTest.php @@ -170,6 +170,7 @@ class RecoveryTest extends TestCase { $this->keyManagerMock->expects($this->once()) ->method('addSystemKeys') + ->with($this->anything(), $this->anything(), $this->equalTo('admin')) ->willReturn(['admin' => 'publicKey']); @@ -181,7 +182,7 @@ class RecoveryTest extends TestCase { $this->assertNull(\Test_Helper::invokePrivate($this->instance, 'recoverFile', - ['/', 'testkey'])); + ['/', 'testkey', 'admin'])); } protected function setUp() { |