summaryrefslogtreecommitdiffstats
path: root/tests/unit/fetcher/FeedFetcherTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/fetcher/FeedFetcherTest.php')
-rw-r--r--tests/unit/fetcher/FeedFetcherTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/fetcher/FeedFetcherTest.php b/tests/unit/fetcher/FeedFetcherTest.php
index 9c24524b0..d9652429a 100644
--- a/tests/unit/fetcher/FeedFetcherTest.php
+++ b/tests/unit/fetcher/FeedFetcherTest.php
@@ -86,7 +86,10 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
->getMock();
$this->time = 2323;
- $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));