wordpress-develop/tests/phpunit/tests/date
Sergey Biryukov a2faa0c897 Tests: Add tests with deprecated timezone strings.
This commit adds tests in select places to ensure that these date/time related functions continue to behave as expected when the `timezone_string` option is set to an outdated/deprecated timezone name.

The timezone string used in these tests, `America/Buenos_Aires`, is a timezone string which was already deprecated in PHP 5.6.20 (the current minimum PHP version), so using this timezone string, we can safely test the handling of deprecated timezone names on all supported PHP versions.

See: [https://3v4l.org/Holsr#v5.6.20 timezone_identifiers_list() output for PHP 5.6.20].

Follow-up to [54207], [54217], [54227], [54229].

Props jrf, costdev.
See #56468.

git-svn-id: https://develop.svn.wordpress.org/trunk@54230 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-19 23:51:20 +00:00
..
currentDatetime.php Date/Time: Add a unit test for the return type of current_datetime(). 2022-01-21 05:58:13 +00:00
currentTime.php Tests: Add tests with deprecated timezone strings. 2022-09-19 23:51:20 +00:00
dateI18n.php Tests: Add tests with deprecated timezone strings. 2022-09-19 23:51:20 +00:00
getCommentDate.php Tests: Rename some classes in phpunit/tests/date/ per the naming conventions. 2021-02-11 21:20:41 +00:00
getFeedBuildDate.php Tests: Replace the timezone used in date/time tests. 2022-09-19 21:18:59 +00:00
getPermalink.php Tests: Reset timezone-related options if the tests change them. 2022-09-19 17:43:55 +00:00
getPostTime.php Tests: Replace the timezone used in date/time tests. 2022-09-19 21:18:59 +00:00
getTheDate.php Tests: Rename some classes in phpunit/tests/date/ per the naming conventions. 2021-02-11 21:20:41 +00:00
getTheModifiedDate.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
maybeDeclineDate.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
mysql2date.php Tests: Add tests with deprecated timezone strings. 2022-09-19 23:51:20 +00:00
query.php Tests: Replace the timezone used in date/time tests. 2022-09-19 21:18:59 +00:00
theDate.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpDate.php Date/Time: Increase test coverage of wp_date(). 2022-08-01 22:48:42 +00:00
wpTimezone.php Tests: Add tests with deprecated timezone strings. 2022-09-19 23:51:20 +00:00
xmlrpc.php Tests: Replace the timezone used in date/time tests. 2022-09-19 21:18:59 +00:00