From: eileen Date: Thu, 11 Apr 2013 14:09:21 +0000 (+1200) Subject: minor fix on setting test where error exposed by fixes elsewhere X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5b887f26ae68648ee6e13bcf9964d6228f6d26e0;p=civicrm-core.git minor fix on setting test where error exposed by fixes elsewhere --- diff --git a/tests/phpunit/api/v3/SettingTest.php b/tests/phpunit/api/v3/SettingTest.php index e816fc73c1..de394c590e 100644 --- a/tests/phpunit/api/v3/SettingTest.php +++ b/tests/phpunit/api/v3/SettingTest.php @@ -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%'";