Commit | Line | Data |
---|---|---|
e1fd0c31 J |
1 | <?php |
2 | namespace Civi\Core; | |
3 | ||
4 | class SettingsBagTest extends \CiviUnitTestCase { | |
5 | ||
6 | protected $origSetting; | |
7 | ||
8 | protected function setUp() { | |
9 | $this->origSetting = $GLOBALS['civicrm_setting']; | |
10 | ||
11 | parent::setUp(); | |
12 | $this->useTransaction(TRUE); | |
13 | ||
14 | $this->mandates = array(); | |
15 | } | |
16 | ||
17 | public function tearDown() { | |
18 | $GLOBALS['civicrm_setting'] = $this->origSetting; | |
19 | parent::tearDown(); | |
20 | } | |
21 | ||
22 | /** | |
23 | * CRM-19610 - Ensure InnoDb FTS doesn't break search preferenes when disabled. | |
24 | */ | |
25 | public function testInnoDbFTS() { | |
26 | ||
27 | $settingsBag = \Civi::settings(); | |
28 | ||
29 | $settingsBag->set("enable_innodb_fts", "0"); | |
30 | $this->assertEquals(0, $settingsBag->get('enable_innodb_fts')); | |
31 | } | |
32 | ||
33 | } |