summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-21 09:59:34 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-21 09:59:34 +0200
commit0d878f94e6a74997ca2c9ff7cf0cb4f63e44a767 (patch)
tree0ae126135b119a588393874386ce054ad34ba439 /apps/provisioning_api/lib
parent103bf6dd287a70d48a8e47543873708056b7fe0f (diff)
downloadnextcloud-server-0d878f94e6a74997ca2c9ff7cf0cb4f63e44a767.tar.gz
nextcloud-server-0d878f94e6a74997ca2c9ff7cf0cb4f63e44a767.zip
Add unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r--apps/provisioning_api/lib/Controller/AppConfigController.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/provisioning_api/lib/Controller/AppConfigController.php b/apps/provisioning_api/lib/Controller/AppConfigController.php
index 05c86c17ac2..f710eda6529 100644
--- a/apps/provisioning_api/lib/Controller/AppConfigController.php
+++ b/apps/provisioning_api/lib/Controller/AppConfigController.php
@@ -31,10 +31,10 @@ use OCP\IRequest;
class AppConfigController extends OCSController {
- /** @var IAppConfig */
+ /** @var IConfig */
protected $config;
- /** @var IConfig */
+ /** @var IAppConfig */
protected $appConfig;
/**
@@ -126,9 +126,8 @@ class AppConfigController extends OCSController {
return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN);
}
- return new DataResponse([
- 'data' => $this->config->deleteAppValue($app, $key),
- ]);
+ $this->config->deleteAppValue($app, $key);
+ return new DataResponse();
}
/**