diff options
Diffstat (limited to 'tests/unit/service/ItemServiceTest.php')
-rw-r--r-- | tests/unit/service/ItemServiceTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/service/ItemServiceTest.php b/tests/unit/service/ItemServiceTest.php index 1b6eb6c00..d7bf70dc9 100644 --- a/tests/unit/service/ItemServiceTest.php +++ b/tests/unit/service/ItemServiceTest.php @@ -34,7 +34,9 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase { protected function setUp(){ $this->time = 222; - $this->timeFactory = $this->getMock('TimeFactory', ['getTime']); + $this->timeFactory = $this->getMockBuilder('\OCP\AppFramework\Utility\ITimeFactory') + ->disableOriginalConstructor() + ->getMock(); $this->timeFactory->expects($this->any()) ->method('getTime') ->will($this->returnValue($this->time)); |