Skip to content

Commit 162fa8a

Browse files
Tests: Add the ticket of the manual UTC offsets to their tests.
Follow-up to [64616]. See #66902.
1 parent 9346867 commit 162fa8a

5 files changed

Lines changed: 29 additions & 0 deletions

File tree

‎tests/phpunit/tests/abilities-api/wpRegisterCoreSettingsGetAbility.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ public function test_core_settings_get_skips_a_setting_with_an_unsupported_type(
591591
* A site without a timezone string reads as its manual UTC offset, the value of the timezone
592592
* list that sets it. A timezone identifier is read as stored.
593593
*
594+
* @ticket 66902
595+
*
594596
* @since 7.3.0
595597
*
596598
* @dataProvider data_timezones

‎tests/phpunit/tests/abilities-api/wpRegisterCoreSettingsUpdateAbility.php‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ public function test_updates_each_setting( string $name, string $option, $value,
11261126
* UTC offset of the site.
11271127
*
11281128
* @ticket 64616
1129+
* @ticket 66902
11291130
*
11301131
* @since 7.3.0
11311132
*
@@ -1656,6 +1657,8 @@ public static function data_usable_values(): array {
16561657
/**
16571658
* A manual UTC offset is stored as the offset of the site, and the timezone string is emptied.
16581659
*
1660+
* @ticket 66902
1661+
*
16591662
* @since 7.3.0
16601663
*
16611664
* @dataProvider data_utc_offsets
@@ -1705,6 +1708,8 @@ public static function data_utc_offsets(): array {
17051708
* A timezone identifier, `UTC` included, is stored as the timezone string, which then sets the
17061709
* offset of the site. The stored offset is left as it is.
17071710
*
1711+
* @ticket 66902
1712+
*
17081713
* @since 7.3.0
17091714
*
17101715
* @dataProvider data_timezone_identifiers
@@ -1742,6 +1747,8 @@ public static function data_timezone_identifiers(): array {
17421747
* An empty timezone empties the timezone string, and the output shows the stored UTC offset the
17431748
* site then runs on.
17441749
*
1750+
* @ticket 66902
1751+
*
17451752
* @since 7.3.0
17461753
*/
17471754
public function test_empty_timezone_reads_as_the_stored_utc_offset(): void {
@@ -1761,6 +1768,8 @@ public function test_empty_timezone_reads_as_the_stored_utc_offset(): void {
17611768
/**
17621769
* A UTC offset is stored when the site has no stored offset.
17631770
*
1771+
* @ticket 66902
1772+
*
17641773
* @since 7.3.0
17651774
*/
17661775
public function test_utc_offset_is_stored_without_a_stored_offset(): void {
@@ -1781,6 +1790,8 @@ public function test_utc_offset_is_stored_without_a_stored_offset(): void {
17811790
/**
17821791
* A UTC offset that the timezone list does not offer is refused, and nothing is written.
17831792
*
1793+
* @ticket 66902
1794+
*
17841795
* @since 7.3.0
17851796
*
17861797
* @dataProvider data_utc_offsets_not_offered
@@ -1823,6 +1834,8 @@ public static function data_utc_offsets_not_offered(): array {
18231834
/**
18241835
* Neither the timezone string nor the offset is written when the call is refused.
18251836
*
1837+
* @ticket 66902
1838+
*
18261839
* @since 7.3.0
18271840
*
18281841
* @dataProvider data_refused_calls_with_a_utc_offset
@@ -1878,6 +1891,8 @@ public static function data_refused_calls_with_a_utc_offset(): array {
18781891
* The offset is written before the timezone string is emptied, so a call stopped between the
18791892
* two writes leaves the site on its timezone string.
18801893
*
1894+
* @ticket 66902
1895+
*
18811896
* @since 7.3.0
18821897
*/
18831898
public function test_call_stopped_after_the_utc_offset_leaves_the_timezone_of_the_site(): void {

‎tests/phpunit/tests/functions/wpGetTimezoneOffsetChoice.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Tests_Functions_WpGetTimezoneOffsetChoice extends WP_UnitTestCase {
1313
/**
1414
* Returns the value of the timezone list for a UTC offset.
1515
*
16+
* @ticket 66902
17+
*
1618
* @since 7.3.0
1719
*
1820
* @dataProvider data_offsets

‎tests/phpunit/tests/functions/wpGetTimezoneOffsetChoices.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Tests_Functions_WpGetTimezoneOffsetChoices extends WP_UnitTestCase {
1313
/**
1414
* The manual UTC offsets run from UTC-12 to UTC+14.
1515
*
16+
* @ticket 66902
17+
*
1618
* @since 7.3.0
1719
*/
1820
public function test_returns_the_manual_utc_offsets(): void {
@@ -28,6 +30,8 @@ public function test_returns_the_manual_utc_offsets(): void {
2830
/**
2931
* Each manual UTC offset is offered by the timezone list.
3032
*
33+
* @ticket 66902
34+
*
3135
* @since 7.3.0
3236
*/
3337
public function test_each_offset_is_offered_by_the_timezone_list(): void {
@@ -41,6 +45,8 @@ public function test_each_offset_is_offered_by_the_timezone_list(): void {
4145
/**
4246
* Each manual UTC offset is parsed into the offset that builds it again.
4347
*
48+
* @ticket 66902
49+
*
4450
* @since 7.3.0
4551
*/
4652
public function test_each_offset_is_parsed_into_the_offset_that_builds_it(): void {

‎tests/phpunit/tests/functions/wpParseTimezoneOffsetChoice.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Tests_Functions_WpParseTimezoneOffsetChoice extends WP_UnitTestCase {
1313
/**
1414
* Returns the UTC offset of a manual offset, as Settings > General stores it.
1515
*
16+
* @ticket 66902
17+
*
1618
* @since 7.3.0
1719
*
1820
* @dataProvider data_manual_offsets
@@ -43,6 +45,8 @@ public static function data_manual_offsets(): array {
4345
/**
4446
* Returns null for a value that is not a manual offset.
4547
*
48+
* @ticket 66902
49+
*
4650
* @since 7.3.0
4751
*
4852
* @dataProvider data_other_values

0 commit comments

Comments
 (0)