4 class SettingsBagTest
extends \CiviUnitTestCase
{
6 protected $origSetting;
8 protected function setUp() {
9 $this->origSetting
= $GLOBALS['civicrm_setting'];
12 $this->useTransaction(TRUE);
17 public function tearDown() {
18 $GLOBALS['civicrm_setting'] = $this->origSetting
;
23 * CRM-19610 - Ensure InnoDb FTS doesn't break search preferenes when disabled.
25 public function testInnoDbFTS() {
27 $settingsBag = \Civi
::settings();
29 $settingsBag->set("enable_innodb_fts", "0");
30 $this->assertEquals(0, $settingsBag->get('enable_innodb_fts'));