really finally working
authoreileen <eileen@fuzion.co.nz>
Fri, 12 Apr 2013 05:32:44 +0000 (17:32 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 12 Apr 2013 05:40:54 +0000 (17:40 +1200)
tests/phpunit/CRM/Core/BAO/SettingTest.php
tests/phpunit/api/v3/SettingTest.php

index b2b59698b57ec39e0ae0714c25098892ab43a5a5..097dce012e6b7a535c24f4395883406ea27c1298 100644 (file)
@@ -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);
index de394c590e382d4b4d7decf0e8850f23089a5e71..dc78e6d63d2b72c6c88a2c2d35b9475b8d22337c 100644 (file)
@@ -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']);
   }
 }