X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FCiviUnitTestCase.php;h=08762b0ca6a9614b916207dc4d8f060af026b143;hb=839bb4781992a410d3b3d2894ce0e9ac0ce48951;hp=c12a2dd92e3438df902b81f0d29a2622e65b448a;hpb=f7a63e524a32ded6dd496dde0d0d5fcea7fe6503;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index c12a2dd92e..08762b0ca6 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -413,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();