X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FCiviUnitTestCase.php;h=08762b0ca6a9614b916207dc4d8f060af026b143;hb=839bb4781992a410d3b3d2894ce0e9ac0ce48951;hp=a0f04fe81af54bcdd21cecc5bc687a573d09c2ef;hpb=897ff8c57843b7fe54d38560b476172154e4a861;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index a0f04fe81a..08762b0ca6 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -336,6 +336,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { //flush component settings CRM_Core_Component::getEnabledComponents(TRUE); + $_REQUEST = $_GET = $_POST = []; error_reporting(E_ALL); $this->_sethtmlGlobals(); @@ -412,8 +413,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { if ($this->hookClass) { $this->hookClass->reset(); } - $session = CRM_Core_Session::singleton(); - $session->set('userID', NULL); + CRM_Core_Session::singleton()->reset(1); if ($this->tx) { $this->tx->rollback()->commit();