woocommerce/tests/php/includes/settings
Nestor Soriano 56cc063d7f
Rename "get_settings" to "get_settings_for_section" in settings pages.
In PHP 8 overriding a method having an optional parameter with a
method having no parameters throws an error, thus we can't use
the strategy of changing "get_settings()" to "get_settings($section='')"
without breaking existing extensions. So we do the following instead:

- Rename the existing "get_settings" to "get_settings_for_section"
- Rename the existing "get_settings_for_section" to "get_settings_for_section_core"
- Add a "get_settings" that just does "get_settings_for_section('')"
  for compatibility, but mark it as deprecated.
2021-04-12 18:04:41 +02:00
..
class-wc-settings-accounts-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-advanced-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-emails-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-example.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-general-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-integrations-test.php Refactor the settings pages, and add unit tests for them. 2021-04-12 12:42:26 +02:00
class-wc-settings-page-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-payment-gateways-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-products-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-shipping-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-tax-test.php Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
class-wc-settings-unit-test-case.php Refactor the settings pages, and add unit tests for them. 2021-04-12 12:42:26 +02:00