Convert variable names to camel case

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-09 15:02:58 +01:00
committed by Jan Jakeš
parent f5da704106
commit 54549ff037
687 changed files with 15890 additions and 15887 deletions

View File

@@ -30,20 +30,20 @@ class Acceptance extends \Codeception\Module
foreach ($logEntries as $logEntry) {
if ($this->isJSError($logEntry)) {
// Collect JS errors into an array
$this->js_errors[] = $logEntry['message'];
$this->jsErrors[] = $logEntry['message'];
}
}
if (!empty($this->js_errors)) {
if (!empty($this->jsErrors)) {
// phpcs:ignore Squiz.PHP.DiscouragedFunctions
$this->debug('JS errors : ' . print_r($this->js_errors, true));
$this->debug('JS errors : ' . print_r($this->jsErrors, true));
}
} catch (\Exception $e) {
$this->debug('Unable to retrieve Selenium logs : ' . $e->getMessage());
}
// String comparison is used to show full error messages in test fail diffs
$this->assertEquals('', join(PHP_EOL, $this->js_errors), 'JS errors are present');
$this->assertEquals('', join(PHP_EOL, $this->jsErrors), 'JS errors are present');
}
public function getCurrentUrl() {
@@ -63,6 +63,6 @@ class Acceptance extends \Codeception\Module
}
public function _after(TestInterface $test) {
$this->js_errors = [];
$this->jsErrors = [];
}
}