]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock FileChunkingTest
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 17:52:50 +0000 (19:52 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:37 +0000 (20:42 +0200)
tests/lib/FileChunkingTest.php

index 66888285d23bb16290191382c017f8574d2cfa6d..cf0fed251a46ea57ca0aa137de93aa28ff5335a6 100644 (file)
@@ -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')