From f6bf8ce402ed43c6a42354e64dda7b3cc081196f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 21 Mar 2015 11:18:20 +0100 Subject: add migrate command, fix #185 --- tests/unit/service/ItemServiceTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3