From 30817fa319a3d5d7e4b64f774a8a02c1e9578d41 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Apr 2017 13:23:55 +0200 Subject: Simplify the test Signed-off-by: Joas Schilling --- tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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]) -- cgit v1.2.3