summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Service/StatusServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Service/StatusServiceTest.php')
-rw-r--r--tests/Unit/Service/StatusServiceTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Unit/Service/StatusServiceTest.php b/tests/Unit/Service/StatusServiceTest.php
index dcd331b99..095bf6247 100644
--- a/tests/Unit/Service/StatusServiceTest.php
+++ b/tests/Unit/Service/StatusServiceTest.php
@@ -33,8 +33,11 @@ class StatusServiceTest extends \PHPUnit_Framework_TestCase {
'\OCA\News\Config\Config')
->disableOriginalConstructor()
->getMock();
- $this->service = new StatusService($this->settings, $this->config,
- $this->appName);
+ $this->db = $this->getMockBuilder("\OCP\IDBConnection")
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->service = new StatusService($this->settings, $this->db,
+ $this->config, $this->appName);
}
private function beforeStatus($cronMode='cron', $cronEnabled=true,