Add more support for defining a pseudoconstant for a setting
authoreileen <emcnaughton@wikimedia.org>
Thu, 26 Mar 2020 02:30:41 +0000 (15:30 +1300)
committereileen <emcnaughton@wikimedia.org>
Sat, 28 Mar 2020 01:09:39 +0000 (14:09 +1300)
commit356013b6566539e1b30c7ab8383cbc400259035a
treea48f059dd4e8eda5bb18f361814797c01d224c26
parent0597447f5e8fb17d229be22bb03bf34c67bcbdc6
Add more support for defining a pseudoconstant for a setting

This extends the ways in which a pseudoconstant can be defined in a setting to better reflect the  ways that
work for the DAO objects.

In this one field is converted - default_invoice_page under CiviContribute settings. (Described as
Default invoice payment page)

The expected result is that the options in that page load the same as before.

This change will reduce the temptation to call silly core functions from extensions....
Civi/Core/SettingsMetadata.php
settings/Contribute.setting.php
tests/phpunit/CRM/Core/BAO/SettingTest.php