From 18a7e455b9d734c43edc2d580b923981f8d9fcbb Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 3 Dec 2019 10:02:13 +1300 Subject: [PATCH] Remove test on function we are deprecating to remove. Tests fail on this now due to deprecation. Looking to remove the whole fn in future --- tests/phpunit/CRM/Core/BAO/PreferencesTest.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/phpunit/CRM/Core/BAO/PreferencesTest.php b/tests/phpunit/CRM/Core/BAO/PreferencesTest.php index 025f34dd08..0e804e37a2 100644 --- a/tests/phpunit/CRM/Core/BAO/PreferencesTest.php +++ b/tests/phpunit/CRM/Core/BAO/PreferencesTest.php @@ -30,20 +30,4 @@ class CRM_Core_BAO_PreferencesTest extends CiviUnitTestCase { $this->assertEquals($addressOptions['country'], 1, 'Country is not set in address options'); } - public function testSetValueOptions() { - $addressOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'address_options' - ); - $addressOptions['county'] = 1; - CRM_Core_BAO_Setting::setValueOption(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'address_options', - $addressOptions - ); - $addressOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'address_options' - ); - - $this->assertEquals($addressOptions['county'], 1, 'County was set but did not stick in db'); - } - } -- 2.25.1