diff options
Diffstat (limited to 'tests/lib/FileChunkingTest.php')
-rw-r--r-- | tests/lib/FileChunkingTest.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/FileChunkingTest.php b/tests/lib/FileChunkingTest.php index 75a6913d4ad..23f50a5b6f7 100644 --- a/tests/lib/FileChunkingTest.php +++ b/tests/lib/FileChunkingTest.php @@ -24,7 +24,6 @@ namespace Test; use OCP\ICache; class FileChunkingTest extends \Test\TestCase { - public function dataIsComplete() { return [ [1, [], false], @@ -61,10 +60,10 @@ class FileChunkingTest extends \Test\TestCase { $cache->expects($this->atLeastOnce()) ->method('hasKey') - ->will($this->returnCallback(function ($key) use ($present) { + ->willReturnCallback(function ($key) use ($present) { $data = explode('-', $key); return in_array($data[3], $present); - })); + }); $fileChunking->method('getCache')->willReturn($cache); |