浏览代码

Strict comparisons

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v12.0.0beta1
Joas Schilling 7 年前
父节点
当前提交
4626514a35
没有帐户链接到提交者的电子邮件

+ 2
- 2
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');
}


+ 2
- 2
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;
}

/**

正在加载...
取消
保存