Changeset 54230 for trunk/tests/phpunit/tests/date/wpTimezone.php
- Timestamp:
- 09/19/2022 11:51:20 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/wpTimezone.php
r54217 r54230 50 50 51 51 $this->assertSame( 'Europe/Helsinki', $timezone->getName() ); 52 } 53 54 /** 55 * Ensures that deprecated timezone strings are handled correctly. 56 * 57 * @ticket 56468 58 */ 59 public function test_should_return_deprecated_timezone_string() { 60 $tz_string = 'America/Buenos_Aires'; // This timezone was deprecated pre-PHP 5.6. 61 update_option( 'timezone_string', $tz_string ); 62 63 $this->assertSame( $tz_string, wp_timezone_string() ); 64 65 $timezone = wp_timezone(); 66 67 $this->assertSame( $tz_string, $timezone->getName() ); 52 68 } 53 69
Note: See TracChangeset
for help on using the changeset viewer.