summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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
);