Changeset 54207
- Timestamp:
- 09/19/2022 05:43:55 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/currentTime.php
r51331 r54207 7 7 */ 8 8 class Tests_Date_CurrentTime extends WP_UnitTestCase { 9 10 /** 11 * Cleans up. 12 */ 13 public function tear_down() { 14 // Reset changed options to their default value. 15 update_option( 'gmt_offset', 0 ); 16 update_option( 'timezone_string', '' ); 17 18 parent::tear_down(); 19 } 9 20 10 21 /** -
trunk/tests/phpunit/tests/date/dateI18n.php
r50291 r54207 7 7 */ 8 8 class Tests_Date_DateI18n extends WP_UnitTestCase { 9 10 /** 11 * Cleans up. 12 */ 13 public function tear_down() { 14 // Reset changed options to their default value. 15 update_option( 'gmt_offset', 0 ); 16 update_option( 'timezone_string', '' ); 17 18 parent::tear_down(); 19 } 9 20 10 21 /** -
trunk/tests/phpunit/tests/date/getFeedBuildDate.php
r54090 r54207 12 12 global $wp_query; 13 13 14 update_option( 'timezone_string', ' UTC' );14 update_option( 'timezone_string', '' ); 15 15 16 16 unset( $wp_query ); -
trunk/tests/phpunit/tests/date/getPermalink.php
r52010 r54207 11 11 public function tear_down() { 12 12 delete_option( 'permalink_structure' ); 13 update_option( 'timezone_string', ' UTC' );13 update_option( 'timezone_string', '' ); 14 14 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 15 15 date_default_timezone_set( 'UTC' ); -
trunk/tests/phpunit/tests/date/getPostTime.php
r50291 r54207 9 9 */ 10 10 class Tests_Date_GetPostTime extends WP_UnitTestCase { 11 12 /** 13 * Cleans up. 14 */ 15 public function tear_down() { 16 // Reset the timezone option to the default value. 17 update_option( 'timezone_string', '' ); 18 19 parent::tear_down(); 20 } 11 21 12 22 /** -
trunk/tests/phpunit/tests/date/mysql2date.php
r52010 r54207 11 11 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 12 12 date_default_timezone_set( 'UTC' ); 13 14 // Reset the timezone option to the default value. 15 update_option( 'timezone_string', '' ); 13 16 14 17 parent::tear_down(); -
trunk/tests/phpunit/tests/date/query.php
r51568 r54207 20 20 unset( $this->q ); 21 21 $this->q = new WP_Date_Query( array( 'm' => 2 ) ); 22 } 23 24 /** 25 * Cleans up. 26 */ 27 public function tear_down() { 28 // Reset the timezone option to the default value. 29 update_option( 'timezone_string', '' ); 30 31 parent::tear_down(); 22 32 } 23 33 -
trunk/tests/phpunit/tests/date/wpTimezone.php
r50291 r54207 8 8 */ 9 9 class Tests_Date_wpTimezone extends WP_UnitTestCase { 10 11 /** 12 * Cleans up. 13 */ 14 public function tear_down() { 15 // Reset changed options to their default value. 16 update_option( 'gmt_offset', 0 ); 17 update_option( 'timezone_string', '' ); 18 19 parent::tear_down(); 20 } 10 21 11 22 /** -
trunk/tests/phpunit/tests/date/xmlrpc.php
r54090 r54207 8 8 */ 9 9 class Tests_Date_XMLRPC extends WP_XMLRPC_UnitTestCase { 10 11 /** 12 * Cleans up. 13 */ 14 public function tear_down() { 15 // Reset the timezone option to the default value. 16 update_option( 'timezone_string', '' ); 17 18 parent::tear_down(); 19 } 10 20 11 21 /** -
trunk/tests/phpunit/tests/formatting/date.php
r53562 r54207 6 6 */ 7 7 class Tests_Formatting_Date extends WP_UnitTestCase { 8 9 /** 10 * Cleans up. 11 */ 12 public function tear_down() { 13 // Reset changed options to their default value. 14 update_option( 'gmt_offset', 0 ); 15 update_option( 'timezone_string', '' ); 16 17 parent::tear_down(); 18 } 8 19 9 20 /**
Note: See TracChangeset
for help on using the changeset viewer.