Fix getMock FileChunkingTest

This commit is contained in:
Roeland Jago Douma 2016-09-07 19:52:50 +02:00
parent 4da1ee99d6
commit a819fd3f1e
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 1 deletions

View 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')