summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-29 22:43:18 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-29 22:43:18 +0200
commitfc474de57313e7d3c369fedb90c7c877212ae78e (patch)
treef027e2dbacde6d2c19d04770cd66f7e10c826890
parentb88a0e7080cd5b1844cfb286b06744f3a2fead20 (diff)
downloadnextcloud-server-fc474de57313e7d3c369fedb90c7c877212ae78e.tar.gz
nextcloud-server-fc474de57313e7d3c369fedb90c7c877212ae78e.zip
Fixing "ImportController::__construct() must implement interface OCP\\ICache, instance of OC\\Cache\\File given"
-rw-r--r--lib/private/cache/file.php5
-rw-r--r--tests/lib/server.php1
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index c033e53e6f7..32c00125764 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -25,9 +25,12 @@ namespace OC\Cache;
use OC\Files\Filesystem;
use OC\Files\View;
+use OCP\ICache;
use OCP\Security\ISecureRandom;
-class File {
+class File implements ICache {
+
+ /** @var View */
protected $storage;
/**
diff --git a/tests/lib/server.php b/tests/lib/server.php
index f2971fea25d..cf0ad8265bf 100644
--- a/tests/lib/server.php
+++ b/tests/lib/server.php
@@ -99,6 +99,7 @@ class Server extends \Test\TestCase {
['NavigationManager', '\OC\NavigationManager'],
['NavigationManager', '\OCP\INavigationManager'],
['UserCache', '\OC\Cache\File'],
+ ['UserCache', '\OCP\ICache'],
['OcsClient', '\OC\OCSClient'],