Commit 7aca9a14 authored by Seamus Lee's avatar Seamus Lee

(NFC) Ensure phpcs ignores eval notice in these files as it is required

parent e9978cfb
......@@ -169,11 +169,15 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener {
}
elseif (!empty($byInterface['HeadlessInterface'])) {
putenv('CIVICRM_UF=UnitTests');
// phpcs:disable
eval($this->cv('php:boot --level=full', 'phpcode'));
// phpcs:enable
}
elseif (!empty($byInterface['EndToEndInterface'])) {
putenv('CIVICRM_UF=');
// phpcs:disable
eval($this->cv('php:boot --level=full', 'phpcode'));
// phpcs:enable
}
$blurb = "Tip: Run the headless tests and end-to-end tests separately, e.g.\n"
......
......@@ -16,7 +16,9 @@ if (file_exists('/etc/timezone')) {
# Crank up the memory
ini_set('memory_limit', '2G');
define('CIVICRM_TEST', 1);
// phpcs:disable
eval(cv('php:boot --level=settings', 'phpcode'));
// phpcs:enable
if (CIVICRM_UF === 'UnitTests') {
Civi\Test::headless()->apply();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment