Skip to content
Snippets Groups Projects
Commit f64cd471 authored by eileen's avatar eileen
Browse files

really finally working

parent 24e06789
No related branches found
No related tags found
No related merge requests found
......@@ -130,16 +130,9 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
$checkresult = CRM_Core_DAO::singleValueQuery($checkSQL);
$this->assertEquals(1, $checkresult, "Check that maxAttachments has been saved to database not just stored in config");
$sql = " DELETE FROM civicrm_setting WHERE name = 'max_attachments'";
$currentDomain = CRM_Core_Config::domainID();
<<<<<<< Updated upstream
CRM_Core_DAO::executeQuery($sql);
CRM_Core_BAO_Setting::inCache('CiviCRM Preferences', 'max_attachments', NULL, NULL, TRUE, $currentDomain, TRUE);
CRM_Core_BAO_Setting::updateSettingsFromMetaData();
=======
>>>>>>> Stashed changes
CRM_Core_DAO::executeQuery($sql);
$currentDomain = CRM_Core_Config::domainID();
// we are setting up an artificial situation here as we are trying to drive out
// previous memory of this setting so we need to flush it out
$cachekey = CRM_Core_BAO_Setting::inCache('CiviCRM Preferences', 'max_attachments', NULL, NULL, TRUE, $currentDomain);
......
......@@ -511,6 +511,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
$result = civicrm_api('setting', 'get', $params);
$this->assertAPISuccess($result, "in line " . __LINE__);
$this->assertArrayHasKey('tag_unconfirmed', $result['values'][$dom['id']]);
$this->assertArrayHasKey('extensionsDir', $result['values'][$dom['id']]);
$this->assertEquals('Unconfirmed', $result['values'][$dom['id']]['tag_unconfirmed']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment