diff --git a/tests/lib/FileChunkingTest.php b/tests/lib/FileChunkingTest.php index 66888285d2..cf0fed251a 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')