summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/integration/features/bootstrap/AppConfiguration.php4
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/build/integration/features/bootstrap/AppConfiguration.php b/build/integration/features/bootstrap/AppConfiguration.php
index 5752150e8d6..39fee5e361a 100644
--- a/build/integration/features/bootstrap/AppConfiguration.php
+++ b/build/integration/features/bootstrap/AppConfiguration.php
@@ -62,7 +62,7 @@ trait AppConfiguration {
$body = new \Behat\Gherkin\Node\TableNode([['value', $value]]);
$this->sendingToWith('post', "/apps/testing/api/v1/app/{$app}/{$parameter}", $body);
$this->theHTTPStatusCodeShouldBe('200');
- if ($this->apiVersion == 1) {
+ if ($this->apiVersion === 1) {
$this->theOCSStatusCodeShouldBe('100');
}
}
@@ -70,7 +70,7 @@ trait AppConfiguration {
protected function setStatusTestingApp($enabled) {
$this->sendingTo(($enabled ? 'post' : 'delete'), '/cloud/apps/testing');
$this->theHTTPStatusCodeShouldBe('200');
- if ($this->apiVersion == 1) {
+ if ($this->apiVersion === 1) {
$this->theOCSStatusCodeShouldBe('100');
}
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 8961efc6f31..ec23916d614 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -83,11 +83,11 @@ trait BasicStructure {
}
/**
- * @Given /^using api version "([^"]*)"$/
+ * @Given /^using api version "(\d+)"$/
* @param string $version
*/
public function usingApiVersion($version) {
- $this->apiVersion = $version;
+ $this->apiVersion = (int) $version;
}
/**