Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
7d61e75f | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
7d61e75f TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 | 11 | |
e9479dcf EM |
12 | /** |
13 | * Class CRM_Core_BAO_PreferencesTest | |
acb109b7 | 14 | * @group headless |
e9479dcf | 15 | */ |
6a488035 | 16 | class CRM_Core_BAO_PreferencesTest extends CiviUnitTestCase { |
6a488035 | 17 | |
00be9182 | 18 | public function setUp() { |
6a488035 TO |
19 | parent::setUp(); |
20 | } | |
21 | ||
00be9182 | 22 | public function testValueOptions() { |
6a488035 TO |
23 | |
24 | $addressOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, | |
25 | 'address_options' | |
26 | ); | |
27 | ||
28 | // street_address should be set | |
29 | $this->assertEquals($addressOptions['street_address'], 1, 'Street Address is not set in address options'); | |
30 | $this->assertEquals($addressOptions['country'], 1, 'Country is not set in address options'); | |
31 | } | |
32 | ||
6a488035 | 33 | } |