diff --git a/tests/phpunit/tests/functions/WpTimezoneChoiceUsortCallback.php b/tests/phpunit/tests/functions/wpTimezoneChoiceUsortCallback.php similarity index 92% rename from tests/phpunit/tests/functions/WpTimezoneChoiceUsortCallback.php rename to tests/phpunit/tests/functions/wpTimezoneChoiceUsortCallback.php index 4732d670aa4f3..58f805833e396 100644 --- a/tests/phpunit/tests/functions/WpTimezoneChoiceUsortCallback.php +++ b/tests/phpunit/tests/functions/wpTimezoneChoiceUsortCallback.php @@ -1,9 +1,9 @@ assertEquals( $sorted, $unsorted, $info ); + $this->assertSame( $sorted, $unsorted ); } - - public function wp_timezone_choice_usort_callback_data() { + public function data_wp_timezone_choice_usort_callback() { return array( - array( + 'just GMT+' => array( 'unsorted' => array( array( 'continent' => 'Etc', @@ -99,10 +97,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: just GMT+', ), - array( + 'mixed UTC and GMT' => array( 'unsorted' => array( array( 'continent' => 'Etc', @@ -177,10 +174,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: MIXED utc and GMT', ), - array( + 'just alpha city' => array( 'unsorted' => array( array( 'continent' => 'Etc', @@ -255,10 +251,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: just alpha city', ), - array( + 'not Etc continents are not sorted' => array( 'unsorted' => array( array( 'continent' => 'd', @@ -333,9 +328,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: not Etc continent are not sorted', ), - array( + + 'not Etc just t_continent' => array( 'unsorted' => array( array( 'continent' => '', @@ -410,9 +405,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: not Etc just t_city', ), - array( + + 'not Etc just t_city' => array( 'unsorted' => array( array( 'continent' => '', @@ -487,9 +482,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: not Etc just t_city', ), - array( + + 'not Etc just t_subcity' => array( 'unsorted' => array( array( 'continent' => '', @@ -564,9 +559,9 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => 'e', ), ), - 'info' => '_wp_timezone_choice_usort_callback: just sub city', ), - array( + + 'just continent with Etc which pulls 1 to bottom' => array( 'unsorted' => array( array( 'continent' => '', @@ -641,7 +636,6 @@ public function wp_timezone_choice_usort_callback_data() { 't_subcity' => '', ), ), - 'info' => '_wp_timezone_choice_usort_callback: just continent with etc which pulls 1 to bottom', ), ); }