summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 11:18:20 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 13:36:50 +0100
commitf6bf8ce402ed43c6a42354e64dda7b3cc081196f (patch)
tree8d3a7dd298d456d51516688824f2b08b4dc682cf /tests
parent35550fe42e36868be1a3ac471bea6dc89b8b6200 (diff)
add migrate command, fix #185
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/service/ItemServiceTest.php9
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;