77 *
88 * @covers ::wp_timezone_choice
99 */
10- class Tests_Functions_wpTimezoneChoice extends WP_UnitTestCase {
10+ class Tests_Functions_WpTimezoneChoice extends WP_UnitTestCase {
1111
1212 public function tear_down () {
13-
1413 restore_current_locale ();
1514 }
1615 /**
1716 * Default values.
1817 *
1918 * @ticket 59941
20- *
2119 * @dataProvider data_wp_timezone_choice
20+ *
21+ * @param string $expected Expected string HTML fragment.
2222 */
2323 public function test_wp_timezone_choice ( $ expected ) {
2424 $ timezone_list = wp_timezone_choice ( '' );
@@ -48,8 +48,10 @@ public function data_wp_timezone_choice() {
4848 * Zones are selected from the list.
4949 *
5050 * @ticket 59941
51- *
5251 * @dataProvider data_wp_timezone_choice_selected
52+ *
53+ * @param string $selected_zone The timezone to select.
54+ * @param string $expected Expected string HTML fragment.
5355 */
5456 public function test_wp_timezone_choice_selected ( $ selected_zone , $ expected ) {
5557 $ actual = wp_timezone_choice ( $ selected_zone );
@@ -86,13 +88,9 @@ public function data_wp_timezone_choice_selected() {
8688 * Test passing the locale in.
8789 *
8890 * @ticket 59941
89- */
90- /**
91- * Test passing the locale in.
92- *
93- * @ticket 59941
94- *
9591 * @dataProvider data_wp_timezone_choice_es
92+ *
93+ * @param string $expected Expected string HTML fragment.
9694 */
9795 public function test_wp_timezone_choice_es ( $ expected ) {
9896 $ timezone_list = wp_timezone_choice ( '' , 'es_ES ' );
@@ -117,8 +115,9 @@ public function data_wp_timezone_choice_es() {
117115 * Set the locale globally.
118116 *
119117 * @ticket 59941
120- *
121118 * @dataProvider data_wp_timezone_choice_es_set
119+ *
120+ * @param string $expected Expected string HTML fragment.
122121 */
123122 public function test_wp_timezone_choice_es_set ( $ expected ) {
124123 switch_to_locale ( 'es_ES ' );
0 commit comments