Changeset 54514 for branches/5.8/tests/phpunit/tests/date/mysql2date.php
- Timestamp:
- 10/14/2022 06:56:01 AM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/tests/phpunit/tests/date/mysql2date.php
r50279 r54514 34 34 */ 35 35 function test_mysql2date_should_format_time() { 36 $timezone = 'Europe/ Kiev';36 $timezone = 'Europe/Helsinki'; 37 37 update_option( 'timezone_string', $timezone ); 38 38 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 48 48 */ 49 49 function test_mysql2date_should_format_time_with_changed_time_zone() { 50 $timezone = 'Europe/ Kiev';50 $timezone = 'Europe/Helsinki'; 51 51 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 52 52 date_default_timezone_set( $timezone ); … … 63 63 * @ticket 28992 64 64 */ 65 function test_mysql2date_should_return_wp_timestamp() {66 $timezone = 'Europe/ Kiev';65 public function test_mysql2date_should_return_wp_timestamp() { 66 $timezone = 'Europe/Helsinki'; 67 67 update_option( 'timezone_string', $timezone ); 68 68 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 77 77 * @ticket 28992 78 78 */ 79 function test_mysql2date_should_return_unix_timestamp_for_gmt_time() {80 $timezone = 'Europe/ Kiev';79 public function test_mysql2date_should_return_unix_timestamp_for_gmt_time() { 80 $timezone = 'Europe/Helsinki'; 81 81 update_option( 'timezone_string', $timezone ); 82 82 $datetime = new DateTime( 'now', new DateTimeZone( 'UTC' ) );
Note: See TracChangeset
for help on using the changeset viewer.