diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-17 13:07:51 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-20 22:13:09 +0300 |
commit | 4626514a35510a6c730fd1d484936524012f44d8 (patch) | |
tree | 2f61c31030c68e60298396f6e30696e68ee3a10a /build | |
parent | 036f5a6e084a66f28de77993d2b13dce279e1d4a (diff) |
Strict comparisons
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/AppConfiguration.php | 4 | ||||
-rw-r--r-- | build/integration/features/bootstrap/BasicStructure.php | 4 |
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; } /** |