summaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/http
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2015-08-05 17:28:08 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2015-08-05 17:28:08 +0200
commit7cb0934fa27a512b2e409361fe283d9c15560327 (patch)
tree1e2f9fcb7433e53e8c072aab6f3d0c81713c01f7 /tests/lib/appframework/http
parent314fc11e1beb37e683cfa874e74ae3103632d803 (diff)
parent6c46430cdb6edf411142d0a73fb888391ea86fd7 (diff)
downloadnextcloud-server-7cb0934fa27a512b2e409361fe283d9c15560327.tar.gz
nextcloud-server-7cb0934fa27a512b2e409361fe283d9c15560327.zip
Merge pull request #18035 from owncloud/ocs-2.0
Adding ocs/v2.php with status code mapper
Diffstat (limited to 'tests/lib/appframework/http')
-rw-r--r--tests/lib/appframework/http/OCSResponseTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/appframework/http/OCSResponseTest.php b/tests/lib/appframework/http/OCSResponseTest.php
index 111dc7ad0a3..1ca3e330bad 100644
--- a/tests/lib/appframework/http/OCSResponseTest.php
+++ b/tests/lib/appframework/http/OCSResponseTest.php
@@ -47,14 +47,13 @@ class OCSResponseTest extends \Test\TestCase {
public function testRender() {
$response = new OCSResponse(
- 'xml', 'status', 2, 'message', ['test' => 'hi'], 'tag', 'abc',
- 'dynamic', 3, 4
+ 'xml', 2, 'message', ['test' => 'hi'], 3, 4
);
$out = $response->render();
$expected = "<?xml version=\"1.0\"?>\n" .
"<ocs>\n" .
" <meta>\n" .
- " <status>status</status>\n" .
+ " <status>failure</status>\n" .
" <statuscode>2</statuscode>\n" .
" <message>message</message>\n" .
" <totalitems>3</totalitems>\n" .