99 */
1010class Tests_Functions_wpTimezoneChoice extends WP_UnitTestCase {
1111
12+ /**
13+ * Tears down.
14+ */
1215 public function tear_down () {
1316 restore_current_locale ();
1417 parent ::tear_down ();
1518 }
1619
1720 /**
18- * Default values.
21+ * Tests default values.
1922 *
2023 * @ticket 59941
2124 *
@@ -27,11 +30,11 @@ public function test_wp_timezone_choice( $expected ) {
2730 }
2831
2932 /**
30- * Datasets for test_wp_timezone_choice.
33+ * Gets data sets for test_wp_timezone_choice.
3134 *
3235 * @return array<string, string[]>
3336 */
34- public function data_wp_timezone_choice () {
37+ public function data_wp_timezone_choice (): array {
3538 return array (
3639 'placeholder option ' => array ( '<option selected="selected" value="">Select a city</option> ' ),
3740 'city in Americas ' => array ( '<option value="America/Los_Angeles">Los Angeles</option> ' ),
@@ -46,7 +49,7 @@ public function data_wp_timezone_choice() {
4649 }
4750
4851 /**
49- * Zones are selected from the list.
52+ * Tests zones are selected from the list.
5053 *
5154 * @ticket 59941
5255 *
@@ -58,11 +61,11 @@ public function test_wp_timezone_choice_selected( $selected_zone, $expected ) {
5861 }
5962
6063 /**
61- * Datasets for test_wp_timezone_choice_selected.
64+ * Gets data sets for test_wp_timezone_choice_selected.
6265 *
6366 * @return array<string, string[]>
6467 */
65- public function data_wp_timezone_choice_selected () {
68+ public function data_wp_timezone_choice_selected (): array {
6669 return array (
6770 'city from the list ' => array (
6871 'America/Los_Angeles ' ,
@@ -84,7 +87,7 @@ public function data_wp_timezone_choice_selected() {
8487 }
8588
8689 /**
87- * Test passing the locale in .
90+ * Tests passing in the locale.
8891 *
8992 * @ticket 59941
9093 *
@@ -96,11 +99,11 @@ public function test_wp_timezone_choice_es( $expected ) {
9699 }
97100
98101 /**
99- * Datasets for test_wp_timezone_choice_es.
102+ * Gets data sets for test_wp_timezone_choice_es.
100103 *
101104 * @return array<string, string[]>
102105 */
103- public function data_wp_timezone_choice_es () {
106+ public function data_wp_timezone_choice_es (): array {
104107 return array (
105108 'placeholder remains in English (no translation override passed) ' => array ( '<option selected="selected" value="">Select a city</option> ' ),
106109 'spanish city translation ' => array ( '<option value="Pacific/Port_Moresby">Puerto Moresby</option> ' ),
@@ -110,7 +113,7 @@ public function data_wp_timezone_choice_es() {
110113 }
111114
112115 /**
113- * Set the locale globally.
116+ * Tests setting the locale globally.
114117 *
115118 * @ticket 59941
116119 *
@@ -123,11 +126,11 @@ public function test_wp_timezone_choice_es_set( $expected ) {
123126 }
124127
125128 /**
126- * Datasets for test_wp_timezone_choice_es_set.
129+ * Gets data sets for test_wp_timezone_choice_es_set.
127130 *
128131 * @return array<string, string[]>
129132 */
130- public function data_wp_timezone_choice_es_set () {
133+ public function data_wp_timezone_choice_es_set (): array {
131134 return array (
132135 'placeholder in Spanish ' => array ( '<option selected="selected" value="">Elige una ciudad</option> ' ),
133136 'spanish city translation ' => array ( '<option value="Pacific/Port_Moresby">Puerto Moresby</option> ' ),
0 commit comments