diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/service/ItemServiceTest.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/unit/service/ItemServiceTest.php b/tests/unit/service/ItemServiceTest.php index be9f49148..0c062ff4c 100644 --- a/tests/unit/service/ItemServiceTest.php +++ b/tests/unit/service/ItemServiceTest.php @@ -30,7 +30,7 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase { private $time; private $newestItemId; private $config; - + private $systemConfig; protected function setUp(){ $this->time = 222; @@ -54,8 +54,13 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase { '\OCA\News\Config\Config') ->disableOriginalConstructor() ->getMock(); + $this->systemConfig = $this->getMockBuilder( + 'OCP\IConfig') + ->disableOriginalConstructor() + ->getMock(); $this->itemService = new ItemService($this->mapper, - $this->statusFlag, $this->timeFactory, $this->config); + $this->statusFlag, $this->timeFactory, $this->config, + $this->systemConfig); $this->user = 'jack'; $this->id = 3; $this->updatedSince = 20333; |