summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 19:52:50 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:37 +0200
commita819fd3f1eb455871ce424efc8be311582a1d43a (patch)
tree18d96e92f939f3fc664a5b9d10fe7eebd4ff2813 /tests
parent4da1ee99d687d27f82e32f53af74ff52a35c36f9 (diff)
downloadnextcloud-server-a819fd3f1eb455871ce424efc8be311582a1d43a.tar.gz
nextcloud-server-a819fd3f1eb455871ce424efc8be311582a1d43a.zip
Fix getMock FileChunkingTest
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/FileChunkingTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/FileChunkingTest.php b/tests/lib/FileChunkingTest.php
index 66888285d23..cf0fed251a4 100644
--- a/tests/lib/FileChunkingTest.php
+++ b/tests/lib/FileChunkingTest.php
@@ -20,6 +20,8 @@
*/
namespace Test;
+use OCP\ICache;
+
class FileChunkingTest extends \Test\TestCase {
public function dataIsComplete() {
@@ -54,7 +56,7 @@ class FileChunkingTest extends \Test\TestCase {
]])
->getMock();
- $cache = $this->getMock('\OCP\ICache');
+ $cache = $this->createMock(ICache::class);
$cache->expects($this->atLeastOnce())
->method('hasKey')