summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-08-11 12:47:57 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-11 12:47:57 +0200
commit934f98b59216991a726b8ea7cf05659f4c6ac616 (patch)
tree155535fb0b3cdce1fa8c3abefea4e5e0e535b139 /apps/provisioning_api
parented1f034e6b638419ae7a35f9c985bc12cc0f35e5 (diff)
downloadnextcloud-server-934f98b59216991a726b8ea7cf05659f4c6ac616.tar.gz
nextcloud-server-934f98b59216991a726b8ea7cf05659f4c6ac616.zip
[provisioning api] Improve apps test coverage
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r--apps/provisioning_api/tests/appstest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/provisioning_api/tests/appstest.php b/apps/provisioning_api/tests/appstest.php
index d6db5d56976..f2a3977eac4 100644
--- a/apps/provisioning_api/tests/appstest.php
+++ b/apps/provisioning_api/tests/appstest.php
@@ -87,6 +87,12 @@ class AppsTest extends TestCase {
}
$disabled = array_diff($list, \OC_App::getEnabledApps());
$this->assertEquals(count($disabled), count($data['apps']));
+ }
+ public function testGetAppsInvalidFilter() {
+ $_GET['filter'] = 'foo';
+ $result = $this->api->getApps([]);
+ $this->assertFalse($result->succeeded());
+ $this->assertEquals(101, $result->getStatusCode());
}
}