From 5b887f26ae68648ee6e13bcf9964d6228f6d26e0 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 12 Apr 2013 02:09:21 +1200 Subject: [PATCH] minor fix on setting test where error exposed by fixes elsewhere --- tests/phpunit/api/v3/SettingTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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%'"; -- 2.25.1