diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 22:03:40 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 22:03:40 +0100 |
commit | fbeaacdf1b3a24043fb0616c14e18b26f4308dd9 (patch) | |
tree | c118988c11091ab5ef6f66e32636a08ed66eb983 /apps/provisioning_api/tests/Controller/AppConfigControllerTest.php | |
parent | 24b58a76831b5183c6daafef32a1a6e333afa877 (diff) | |
download | nextcloud-server-fbeaacdf1b3a24043fb0616c14e18b26f4308dd9.tar.gz nextcloud-server-fbeaacdf1b3a24043fb0616c14e18b26f4308dd9.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/provisioning_api/tests/Controller/AppConfigControllerTest.php')
-rw-r--r-- | apps/provisioning_api/tests/Controller/AppConfigControllerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php b/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php index 223f2c371d6..2f299b58586 100644 --- a/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php +++ b/apps/provisioning_api/tests/Controller/AppConfigControllerTest.php @@ -138,7 +138,7 @@ class AppConfigControllerTest extends TestCase { public function dataGetValue() { return [ - ['app1 ', null, null, null, new \InvalidArgumentException('error'), Http::STATUS_FORBIDDEN], + ['app1', 'key', 'default', null, new \InvalidArgumentException('error'), Http::STATUS_FORBIDDEN], ['app2', 'key', 'default', 'return', null, Http::STATUS_OK], ]; } @@ -186,8 +186,8 @@ class AppConfigControllerTest extends TestCase { public function dataSetValue() { return [ - ['app1 ', null, null, new \InvalidArgumentException('error1'), null, Http::STATUS_FORBIDDEN], - ['app2', 'key', null, null, new \InvalidArgumentException('error2'), Http::STATUS_FORBIDDEN], + ['app1', 'key', 'default', new \InvalidArgumentException('error1'), null, Http::STATUS_FORBIDDEN], + ['app2', 'key', 'default', null, new \InvalidArgumentException('error2'), Http::STATUS_FORBIDDEN], ['app2', 'key', 'default', null, null, Http::STATUS_OK], ]; } @@ -252,7 +252,7 @@ class AppConfigControllerTest extends TestCase { public function dataDeleteValue() { return [ - ['app1 ', null, new \InvalidArgumentException('error1'), null, Http::STATUS_FORBIDDEN], + ['app1', 'key', new \InvalidArgumentException('error1'), null, Http::STATUS_FORBIDDEN], ['app2', 'key', null, new \InvalidArgumentException('error2'), Http::STATUS_FORBIDDEN], ['app2', 'key', null, null, Http::STATUS_OK], ]; |