summaryrefslogtreecommitdiffstats
path: root/tests/unit/service/ItemServiceTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 19:20:21 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-18 14:06:07 +0100
commit73759298658da929fe2da06d0446a93a56859067 (patch)
tree99972490a099d31c70a0f856d681f71e194103a3 /tests/unit/service/ItemServiceTest.php
parentf741d1fd502687aafede499ab55c0803ad469df3 (diff)
first stab at intelligent container
Diffstat (limited to 'tests/unit/service/ItemServiceTest.php')
-rw-r--r--tests/unit/service/ItemServiceTest.php4
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));