diff --git a/tests/phpunit/tests/link/editTermLink.php b/tests/phpunit/tests/link/editTermLink.php index 906014f067..b55cab5f75 100644 --- a/tests/phpunit/tests/link/editTermLink.php +++ b/tests/phpunit/tests/link/editTermLink.php @@ -118,34 +118,34 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase { */ public function data_edit_term_link() { return array( - 'category passing term_id' => array( - 'taxonomy' => 'category', - 'use_id' => false, - 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', - ), - 'category passing term object' => array( + 'category passing term_id' => array( 'taxonomy' => 'category', 'use_id' => true, 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', ), - 'post_tag passing term_id' => array( - 'taxonomy' => 'post_tag', + 'category passing term object' => array( + 'taxonomy' => 'category', 'use_id' => false, - 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', + 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', ), - 'post_tag passing term object' => array( + 'post_tag passing term_id' => array( 'taxonomy' => 'post_tag', 'use_id' => true, 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', ), - 'a custom taxonomy passing term_id' => array( + 'post_tag passing term object' => array( + 'taxonomy' => 'post_tag', + 'use_id' => false, + 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', + ), + 'a custom taxonomy passing term_id' => array( 'taxonomy' => 'custom_taxonomy', - 'use_id' => false, + 'use_id' => true, 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', ), - 'a custom taxonomy passing term_id' => array( + 'a custom taxonomy passing term object' => array( 'taxonomy' => 'custom_taxonomy', - 'use_id' => true, + 'use_id' => false, 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', ), ); diff --git a/tests/phpunit/tests/link/getEditTermLink.php b/tests/phpunit/tests/link/getEditTermLink.php index 29a0466b24..3d1dd77da8 100644 --- a/tests/phpunit/tests/link/getEditTermLink.php +++ b/tests/phpunit/tests/link/getEditTermLink.php @@ -118,34 +118,34 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase { */ public function data_get_edit_term_link() { return array( - 'category passing term_id' => array( - 'taxonomy' => 'category', - 'use_id' => false, - 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', - ), - 'category passing term object' => array( + 'category passing term_id' => array( 'taxonomy' => 'category', 'use_id' => true, 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', ), - 'post_tag passing term_id' => array( - 'taxonomy' => 'post_tag', + 'category passing term object' => array( + 'taxonomy' => 'category', 'use_id' => false, - 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', + 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', ), - 'post_tag passing term object' => array( + 'post_tag passing term_id' => array( 'taxonomy' => 'post_tag', 'use_id' => true, 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', ), - 'a custom taxonomy passing term_id' => array( + 'post_tag passing term object' => array( + 'taxonomy' => 'post_tag', + 'use_id' => false, + 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', + ), + 'a custom taxonomy passing term_id' => array( 'taxonomy' => 'custom_taxonomy', - 'use_id' => false, + 'use_id' => true, 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', ), - 'a custom taxonomy passing term_id' => array( + 'a custom taxonomy passing term object' => array( 'taxonomy' => 'custom_taxonomy', - 'use_id' => true, + 'use_id' => false, 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', ), ); diff --git a/tests/phpunit/tests/term/getTermLink.php b/tests/phpunit/tests/term/getTermLink.php index 3522464cd1..61a4d08b7f 100644 --- a/tests/phpunit/tests/term/getTermLink.php +++ b/tests/phpunit/tests/term/getTermLink.php @@ -294,30 +294,29 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase { */ public function data_get_term_link() { return array( - 'category passing term_id' => array( - 'taxonomy' => 'category', - 'use_id' => false, - ), - 'category passing term object' => array( + 'category passing term_id' => array( 'taxonomy' => 'category', 'use_id' => true, ), - 'post_tag passing term_id' => array( - 'taxonomy' => 'post_tag', + 'category passing term object' => array( + 'taxonomy' => 'category', 'use_id' => false, ), - 'post_tag passing term object' => array( + 'post_tag passing term_id' => array( 'taxonomy' => 'post_tag', 'use_id' => true, ), - 'a custom taxonomy passing term_id' => array( - 'taxonomy' => 'wptests_tax', + 'post_tag passing term object' => array( + 'taxonomy' => 'post_tag', 'use_id' => false, ), - 'a custom taxonomy passing term_id' => array( + 'a custom taxonomy passing term_id' => array( 'taxonomy' => 'wptests_tax', 'use_id' => true, - 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', + ), + 'a custom taxonomy passing term object' => array( + 'taxonomy' => 'wptests_tax', + 'use_id' => false, ), ); }