summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2017-01-10 15:55:00 +0000
committerMorris Jobke <hey@morrisjobke.de>2017-03-20 13:13:08 -0600
commit8e99f19c2833142543f893c784173e9891d27be2 (patch)
tree3875e5c5ef3da95fec65a64339d701768852663d /build/integration/features/bootstrap
parent21cf1b22e9efa17aa4b9fcd4575c891c309c30df (diff)
downloadnextcloud-server-8e99f19c2833142543f893c784173e9891d27be2.tar.gz
nextcloud-server-8e99f19c2833142543f893c784173e9891d27be2.zip
Added tests using v2.php
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/AppConfiguration.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/AppConfiguration.php b/build/integration/features/bootstrap/AppConfiguration.php
index 2f84dce3f1b..5752150e8d6 100644
--- a/build/integration/features/bootstrap/AppConfiguration.php
+++ b/build/integration/features/bootstrap/AppConfiguration.php
@@ -62,13 +62,17 @@ trait AppConfiguration {
$body = new \Behat\Gherkin\Node\TableNode([['value', $value]]);
$this->sendingToWith('post', "/apps/testing/api/v1/app/{$app}/{$parameter}", $body);
$this->theHTTPStatusCodeShouldBe('200');
- $this->theOCSStatusCodeShouldBe('100');
+ if ($this->apiVersion == 1) {
+ $this->theOCSStatusCodeShouldBe('100');
+ }
}
protected function setStatusTestingApp($enabled) {
$this->sendingTo(($enabled ? 'post' : 'delete'), '/cloud/apps/testing');
$this->theHTTPStatusCodeShouldBe('200');
- $this->theOCSStatusCodeShouldBe('100');
+ if ($this->apiVersion == 1) {
+ $this->theOCSStatusCodeShouldBe('100');
+ }
$this->sendingTo('get', '/cloud/apps?filter=enabled');
$this->theHTTPStatusCodeShouldBe('200');