diff --git tests/phpunit/tests/date/dateI18n.php tests/phpunit/tests/date/dateI18n.php
index e92f58de6f..73d4cbfd7f 100644
|
|
class Tests_Date_I18n extends WP_UnitTestCase { |
67 | 67 | |
68 | 68 | $this->assertEquals( '2012-12-01 00:00:00 CST -06:00 America/Regina', date_i18n( 'Y-m-d H:i:s T P e', strtotime( '2012-12-01 00:00:00' ) ) ); |
69 | 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @link https://core.trac.wordpress.org/ticket/43530 |
| 73 | * @ticket 43530 |
| 74 | */ |
| 75 | public function test_swatch_internet_time_with_wp_timestamp() { |
| 76 | update_option( 'gmt_offset', -6 ); |
| 77 | update_option( 'timezone_string', 'America/Regina' ); |
| 78 | |
| 79 | $this->assertEquals( date( 'B' ), date_i18n( 'B' ) ); |
| 80 | } |
70 | 81 | } |