summaryrefslogtreecommitdiffstats
path: root/tests/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-08 16:35:13 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-08 16:35:13 +0100
commitc23957811d31812cc9193eae0c83f6d7648b971b (patch)
tree114f922795e913d2a71e251f48d43b6833b7e9c2 /tests/settings
parent5f43809ace0068cd577959e4a522292ec3a1c9bb (diff)
downloadnextcloud-server-c23957811d31812cc9193eae0c83f6d7648b971b.tar.gz
nextcloud-server-c23957811d31812cc9193eae0c83f6d7648b971b.zip
React on other statuscodes than 200
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/controller/groupscontrollertest.php8
-rw-r--r--tests/settings/controller/userscontrollertest.php23
2 files changed, 9 insertions, 22 deletions
diff --git a/tests/settings/controller/groupscontrollertest.php b/tests/settings/controller/groupscontrollertest.php
index 003fb70b811..4b6c9d02566 100644
--- a/tests/settings/controller/groupscontrollertest.php
+++ b/tests/settings/controller/groupscontrollertest.php
@@ -148,10 +148,7 @@ class GroupsControllerTest extends \Test\TestCase {
$expectedResponse = new DataResponse(
array(
- 'status' => 'error',
- 'data' => array(
- 'message' => 'Group already exists.'
- )
+ 'message' => 'Group already exists.'
),
Http::STATUS_CONFLICT
);
@@ -173,8 +170,7 @@ class GroupsControllerTest extends \Test\TestCase {
$expectedResponse = new DataResponse(
array(
- 'status' => 'success',
- 'data' => array('groupname' => 'NewGroup')
+ 'groupname' => 'NewGroup'
),
Http::STATUS_CREATED
);
diff --git a/tests/settings/controller/userscontrollertest.php b/tests/settings/controller/userscontrollertest.php
index 0f1dfb4e685..4b0683b6dae 100644
--- a/tests/settings/controller/userscontrollertest.php
+++ b/tests/settings/controller/userscontrollertest.php
@@ -153,12 +153,9 @@ class UsersControllerTest extends \Test\TestCase {
$expectedResponse = new DataResponse(
array(
- 'status' => 'success',
- 'data' => array(
- 'username' => 'foo',
- 'groups' => null,
- 'storageLocation' => '/home/user'
- )
+ 'username' => 'foo',
+ 'groups' => null,
+ 'storageLocation' => '/home/user'
),
Http::STATUS_CREATED
);
@@ -213,12 +210,9 @@ class UsersControllerTest extends \Test\TestCase {
$expectedResponse = new DataResponse(
array(
- 'status' => 'success',
- 'data' => array(
- 'username' => 'foo',
- 'groups' => array('NewGroup', 'ExistingGroup'),
- 'storageLocation' => '/home/user'
- )
+ 'username' => 'foo',
+ 'groups' => array('NewGroup', 'ExistingGroup'),
+ 'storageLocation' => '/home/user'
),
Http::STATUS_CREATED
);
@@ -237,10 +231,7 @@ class UsersControllerTest extends \Test\TestCase {
$expectedResponse = new DataResponse(
array(
- 'status' => 'error',
- 'data' => array(
- 'message' => 'Unable to create user.'
- )
+ 'message' => 'Unable to create user.'
),
Http::STATUS_FORBIDDEN
);