Changeset 53833 for trunk/tests/phpunit/tests/link/getEditTermLink.php
- Timestamp:
- 08/04/2022 05:18:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getEditTermLink.php
r52305 r53833 119 119 public function data_get_edit_term_link() { 120 120 return array( 121 'category passing term_id' => array( 121 'category passing term_id' => array( 122 'taxonomy' => 'category', 123 'use_id' => true, 124 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', 125 ), 126 'category passing term object' => array( 122 127 'taxonomy' => 'category', 123 128 'use_id' => false, 124 129 'expected' => 'term.php?taxonomy=category&tag_ID=%ID%&post_type=post', 125 130 ), 126 ' category passing term object'=> array(127 'taxonomy' => ' category',131 'post_tag passing term_id' => array( 132 'taxonomy' => 'post_tag', 128 133 'use_id' => true, 129 'expected' => 'term.php?taxonomy= category&tag_ID=%ID%&post_type=post',134 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', 130 135 ), 131 'post_tag passing term _id' => array(136 'post_tag passing term object' => array( 132 137 'taxonomy' => 'post_tag', 133 138 'use_id' => false, 134 139 'expected' => 'term.php?taxonomy=post_tag&tag_ID=%ID%&post_type=post', 135 140 ), 136 ' post_tag passing term object'=> array(137 'taxonomy' => ' post_tag',141 'a custom taxonomy passing term_id' => array( 142 'taxonomy' => 'custom_taxonomy', 138 143 'use_id' => true, 139 'expected' => 'term.php?taxonomy= post_tag&tag_ID=%ID%&post_type=post',144 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', 140 145 ), 141 'a custom taxonomy passing term _id' => array(146 'a custom taxonomy passing term object' => array( 142 147 'taxonomy' => 'custom_taxonomy', 143 148 'use_id' => false, 144 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post',145 ),146 'a custom taxonomy passing term_id' => array(147 'taxonomy' => 'custom_taxonomy',148 'use_id' => true,149 149 'expected' => 'term.php?taxonomy=custom_taxonomy&tag_ID=%ID%&post_type=post', 150 150 ),
Note: See TracChangeset
for help on using the changeset viewer.