Răsfoiți Sursa

Fix getMock FileChunkingTest

Roeland Jago Douma 7 ani în urmă
părinte
comite
a819fd3f1e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tests/lib/FileChunkingTest.php

+ 3 - 1
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')