Merge pull request #17253 from mattwire/utf8convertblocksize
[civicrm-core.git] / tests / phpunit / CRM / Core / BAO / PreferencesTest.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 * Class CRM_Core_BAO_PreferencesTest
14 * @group headless
15 */
16 class CRM_Core_BAO_PreferencesTest extends CiviUnitTestCase {
17
18 public function setUp() {
19 parent::setUp();
20 }
21
22 public function testValueOptions() {
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
33 }