diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-24 10:16:06 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-24 10:19:09 +0200 |
commit | 24128d1384f2548f0cdc35c26d684dbeb61d091b (patch) | |
tree | 3ae27c27d8c681ce45b6b2ac1fe8315125e631c6 /tests | |
parent | 2646bccb83d06f575722e3fb8c5bd87ed42775c9 (diff) | |
download | nextcloud-server-24128d1384f2548f0cdc35c26d684dbeb61d091b.tar.gz nextcloud-server-24128d1384f2548f0cdc35c26d684dbeb61d091b.zip |
only update share keys if the file was encrypted
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/wrapper/encryption.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/files/storage/wrapper/encryption.php b/tests/lib/files/storage/wrapper/encryption.php index f22f02f568c..2d3f10ecdfa 100644 --- a/tests/lib/files/storage/wrapper/encryption.php +++ b/tests/lib/files/storage/wrapper/encryption.php @@ -136,7 +136,8 @@ class Encryption extends \Test\Files\Storage\Storage { public function testRename($source, $target, $shouldUpdate) { $this->keyStore ->expects($this->once()) - ->method('renameKeys'); + ->method('renameKeys') + ->willReturn(true); $this->util->expects($this->any()) ->method('isFile')->willReturn(true); if ($shouldUpdate) { @@ -174,7 +175,8 @@ class Encryption extends \Test\Files\Storage\Storage { public function testCopy($source, $target, $shouldUpdate) { $this->keyStore ->expects($this->once()) - ->method('copyKeys'); + ->method('copyKeys') + ->willReturn(true); $this->util->expects($this->any()) ->method('isFile')->willReturn(true); if ($shouldUpdate) { |