woocommerce/tests/legacy
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
..
data Add unit test and a sample Woo plugin file 2020-05-01 22:47:08 +05:30
framework Move code hacker resetting from BeforeTestHook to setUp 2021-04-12 12:42:39 +02:00
includes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
unit-tests Rename "get_settings" to "get_settings_for_section" in settings pages. 2021-04-12 18:04:41 +02:00
bootstrap.php Reintroduce the dependency injection related code. 2020-10-08 09:28:05 +02:00
classes-with-mockable-static-methods.php Refactor the settings pages, and add unit tests for them. 2021-04-12 12:42:26 +02:00
mockable-functions.php Refactor the settings pages, and add unit tests for them. 2021-04-12 12:42:26 +02:00