diff --git a/tests/core/avatar/avatarcontrollertest.php b/tests/core/avatar/avatarcontrollertest.php
index c58d7febc3f3227bf264adb3ca071031cd93dbf1..0a85fbb27f181ae81f2eef8b7108d12e246b2cea 100644
--- a/tests/core/avatar/avatarcontrollertest.php
+++ b/tests/core/avatar/avatarcontrollertest.php
@@ -62,7 +62,7 @@ class AvatarControllerTest extends \Test\TestCase {
 		$this->container['AppName'] = 'core';
 		$this->container['AvatarManager'] = $this->getMockBuilder('OCP\IAvatarManager')
 			->disableOriginalConstructor()->getMock();
-		$this->container['Cache'] = $this->getMockBuilder('OCP\ICache')
+		$this->container['Cache'] = $this->getMockBuilder('OC\Cache\File')
 			->disableOriginalConstructor()->getMock();
 		$this->container['L10N'] = $this->getMockBuilder('OCP\IL10N')
 			->disableOriginalConstructor()->getMock();