Changeset 47118 for trunk/tests/phpunit/tests/date/getPermalink.php
- Timestamp:
- 01/28/2020 12:51:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/getPermalink.php
r46795 r47118 11 11 delete_option( 'permalink_structure' ); 12 12 update_option( 'timezone_string', 'UTC' ); 13 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 13 14 date_default_timezone_set( 'UTC' ); 14 15 … … 23 24 update_option( 'timezone_string', $timezone ); 24 25 update_option( 'permalink_structure', '/%year%/%monthnum%/%day%/%hour%/%minute%/%second%' ); 26 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 25 27 date_default_timezone_set( 'UTC' ); 26 28 … … 34 36 $this->assertEquals( 'http://example.org/2018/07/22/21/13/23', get_permalink( $post_id ) ); 35 37 38 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 36 39 date_default_timezone_set( $timezone ); 37 40 $this->assertEquals( 'http://example.org/2018/07/22/21/13/23', get_permalink( $post_id ) );
Note: See TracChangeset
for help on using the changeset viewer.