$test->setUpHeadless();
- $config = \CRM_Core_Config::singleton(TRUE, TRUE); // ugh, performance
\CRM_Utils_System::flushCache();
\Civi::reset();
\CRM_Core_Session::singleton()->set('userID', NULL);
+ $config = \CRM_Core_Config::singleton(TRUE, TRUE); // ugh, performance
if (property_exists($config->userPermissionClass, 'permissions')) {
$config->userPermissionClass->permissions = NULL;
}
$blurb = "Tip: Run the headless tests and end-to-end tests separately, e.g.\n"
- . " $ phpunit4 --group headless\n"
- . " $ phpunit4 --group e2e \n";
+ . " $ phpunit5 --group headless\n"
+ . " $ phpunit5 --group e2e \n";
if (!empty($byInterface['HeadlessInterface']) && CIVICRM_UF !== 'UnitTests') {
$testNames = implode(', ', array_keys($byInterface['HeadlessInterface']));