minor fix on setting test where error exposed by fixes elsewhere
authoreileen <eileen@fuzion.co.nz>
Thu, 11 Apr 2013 14:09:21 +0000 (02:09 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 12 Apr 2013 05:40:49 +0000 (17:40 +1200)
tests/phpunit/api/v3/SettingTest.php

index e816fc73c1f91c922f9433907fb36b765495d9a8..de394c590e382d4b4d7decf0e8850f23089a5e71 100644 (file)
@@ -327,7 +327,9 @@ class api_v3_SettingTest extends CiviUnitTestCase {
     );
     $result = civicrm_api('setting', 'create', $params);
     $this->assertAPISuccess($result, "in line " . __LINE__);
-    $config = CRM_Core_Config::singleton();
+    CRM_Core_BAO_Domain::setDomain($this->_domainID2);
+    $config = CRM_Core_Config::singleton(TRUE, TRUE);
+    CRM_Core_BAO_Domain::resetDomain();
     $this->assertTrue($config->debug == 1);
     // this should NOT be stored in the settings table now - only in config
     $sql = " SELECT count(*) as c FROM civicrm_setting WHERE name LIKE '%debug%'";