summaryrefslogtreecommitdiffstats
path: root/tests/unit/service/FolderServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/service/FolderServiceTest.php')
-rw-r--r--tests/unit/service/FolderServiceTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/service/FolderServiceTest.php b/tests/unit/service/FolderServiceTest.php
index 927cd1229..c6e17bdbd 100644
--- a/tests/unit/service/FolderServiceTest.php
+++ b/tests/unit/service/FolderServiceTest.php
@@ -30,7 +30,9 @@ class FolderServiceTest extends \PHPUnit_Framework_TestCase {
->disableOriginalConstructor()
->getMock();
$this->time = 222;
- $timeFactory = $this->getMock('TimeFactory', ['getTime']);
+ $timeFactory = $this->getMockBuilder('\OCP\AppFramework\Utility\ITimeFactory')
+ ->disableOriginalConstructor()
+ ->getMock();
$timeFactory->expects($this->any())
->method('getTime')
->will($this->returnValue($this->time));