diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php index 4b2075c852..eb665af8dd 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])