diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-12 13:23:55 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-12 13:23:55 +0200 |
commit | 30817fa319a3d5d7e4b64f774a8a02c1e9578d41 (patch) | |
tree | 4d18d14b3ce30950aadfbd88aeb857b5256af6da /tests | |
parent | dc78f1251eee236e65386439e51b8f45b1bc9d2d (diff) | |
download | nextcloud-server-30817fa319a3d5d7e4b64f774a8a02c1e9578d41.tar.gz nextcloud-server-30817fa319a3d5d7e4b64f774a8a02c1e9578d41.zip |
Simplify the test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php index 4b2075c852e..eb665af8dda 100644 --- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php @@ -621,7 +621,7 @@ class EncryptionTest extends Storage { $sourceStorage->expects($this->once()) ->method('file_exists') - ->willReturnCallback(function() use ($exists) {return $exists;}); + ->willReturn($exists); $util = $this->getMockBuilder('\OC\Encryption\Util') ->setConstructorArgs([new View(), new Manager($this->config), $this->groupManager, $this->config, $this->arrayCache]) |