summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/ApiControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controller/ApiControllerTest.php')
-rw-r--r--tests/unit/controller/ApiControllerTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/controller/ApiControllerTest.php b/tests/unit/controller/ApiControllerTest.php
index 79a7d02e9..8975819ea 100644
--- a/tests/unit/controller/ApiControllerTest.php
+++ b/tests/unit/controller/ApiControllerTest.php
@@ -33,7 +33,7 @@ class ApiControllerTest extends ControllerTestUtility {
protected function setUp() {
$this->appName = 'news';
$this->settings = $this->getMockBuilder(
- '\OCA\News\Core\Settings')
+ '\OCP\IConfig')
->disableOriginalConstructor()
->getMock();
$this->request = $this->getMockBuilder(
@@ -71,7 +71,8 @@ class ApiControllerTest extends ControllerTestUtility {
public function testGetVersion(){
$this->settings->expects($this->once())
->method('getAppValue')
- ->with($this->equalTo('installed_version'))
+ ->with($this->equalTo($this->appName),
+ $this->equalTo('installed_version'))
->will($this->returnValue('1.0'));
$response = $this->newsAPI->version();