Skip to content
Snippets Groups Projects
Unverified Commit 61a860a2 authored by DaveD's avatar DaveD Committed by GitHub
Browse files

Merge pull request #25534 from totten/5.59-test-tz

CiviTestListener - Headless tests should initialize timezone
parents 92370cb9 8ab6ac20
Branches
Tags
No related merge requests found
......@@ -121,6 +121,7 @@ else {
\CRM_Core_Session::singleton()->set('userID', NULL);
// ugh, performance
$config = \CRM_Core_Config::singleton(TRUE, TRUE);
$config->userSystem->setMySQLTimeZone();
if (property_exists($config->userPermissionClass, 'permissions')) {
$config->userPermissionClass->permissions = NULL;
......
......@@ -114,6 +114,7 @@ class CiviTestListenerPHPUnit7 implements \PHPUnit\Framework\TestListener {
\CRM_Core_Session::singleton()->set('userID', NULL);
// ugh, performance
$config = \CRM_Core_Config::singleton(TRUE, TRUE);
$config->userSystem->setMySQLTimeZone();
if (property_exists($config->userPermissionClass, 'permissions')) {
$config->userPermissionClass->permissions = NULL;
......
......@@ -111,6 +111,7 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener {
\CRM_Core_Session::singleton()->set('userID', NULL);
// ugh, performance
$config = \CRM_Core_Config::singleton(TRUE, TRUE);
$config->userSystem->setMySQLTimeZone();
if (property_exists($config->userPermissionClass, 'permissions')) {
$config->userPermissionClass->permissions = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment