aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-01 12:18:24 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-12 17:22:33 +0100
commit922cf44c81770a28c1e4791e9559a101d2263de9 (patch)
tree02fd1af450e2d40307de4b25788c079126a10596 /tests
parent8ecac5654323e5d335386874f01b15d680d0febb (diff)
downloadnextcloud-server-922cf44c81770a28c1e4791e9559a101d2263de9.tar.gz
nextcloud-server-922cf44c81770a28c1e4791e9559a101d2263de9.zip
Move to OCS endpoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/NavigationControllerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Core/Controller/NavigationControllerTest.php b/tests/Core/Controller/NavigationControllerTest.php
index 3a745b48678..9b1d33ab868 100644
--- a/tests/Core/Controller/NavigationControllerTest.php
+++ b/tests/Core/Controller/NavigationControllerTest.php
@@ -23,7 +23,7 @@
namespace Tests\Core\Controller;
use OC\Core\Controller\NavigationController;
-use OCP\AppFramework\Http\JSONResponse;
+use OCP\AppFramework\Http\DataResponse;
use OCP\INavigationManager;
use OCP\IRequest;
use OCP\IURLGenerator;
@@ -78,11 +78,11 @@ class NavigationControllerTest extends TestCase {
->with('/index.php/apps/files')
->willReturn('http://localhost/index.php/apps/files');
$actual = $this->controller->getAppsNavigation($absolute);
- $this->assertInstanceOf(JSONResponse::class, $actual);
+ $this->assertInstanceOf(DataResponse::class, $actual);
$this->assertEquals('http://localhost/index.php/apps/files', $actual->getData()[0]['href']);
} else {
$actual = $this->controller->getAppsNavigation($absolute);
- $this->assertInstanceOf(JSONResponse::class, $actual);
+ $this->assertInstanceOf(DataResponse::class, $actual);
$this->assertEquals('/index.php/apps/files', $actual->getData()[0]['href']);
}
}
@@ -102,11 +102,11 @@ class NavigationControllerTest extends TestCase {
->with('/index.php/settings/user')
->willReturn('http://localhost/index.php/settings/user');
$actual = $this->controller->getSettingsNavigation($absolute);
- $this->assertInstanceOf(JSONResponse::class, $actual);
+ $this->assertInstanceOf(DataResponse::class, $actual);
$this->assertEquals('http://localhost/index.php/settings/user', $actual->getData()[0]['href']);
} else {
$actual = $this->controller->getSettingsNavigation($absolute);
- $this->assertInstanceOf(JSONResponse::class, $actual);
+ $this->assertInstanceOf(DataResponse::class, $actual);
$this->assertEquals('/index.php/settings/user', $actual->getData()[0]['href']);
}
}