function testBulkSettingChange() { $oConf = new OA_Admin_Settings(true); $oConf->bulkSettingChange('foo', array('one' => 'bar', 'two' => 'baz')); $expected = array('foo' => array('one' => 'bar', 'two' => 'baz')); $this->assertEqual($expected, $oConf->aConf); }
/** * Following method merges geotargeting plugins config * into global config file. By doing that we are improving * delivery performance for scripts using geotargeting data * by more than 15%. * * @return boolean True on success else false */ function mergeConfigWith($section, $mergeWithConf) { $config = new OA_Admin_Settings(); $config->bulkSettingChange($section, $mergeWithConf); return $config->writeConfigChange(); }