Changeset 52010 for trunk/tests/phpunit/tests/user/listAuthors.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/listAuthors.php
r49603 r52010 75 75 } 76 76 77 function test_wp_list_authors_default() {77 public function test_wp_list_authors_default() { 78 78 $expected['default'] = 79 79 '<li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a></li>' . … … 84 84 } 85 85 86 function test_wp_list_authors_orderby() {86 public function test_wp_list_authors_orderby() { 87 87 $expected['post_count'] = 88 88 '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>' . … … 101 101 } 102 102 103 function test_wp_list_authors_order() {103 public function test_wp_list_authors_order() { 104 104 $expected['id'] = 105 105 '<li><a href="' . self::$user_urls[2] . '" title="Posts by paul">paul</a></li>' . … … 119 119 } 120 120 121 function test_wp_list_authors_optioncount() {121 public function test_wp_list_authors_optioncount() { 122 122 $expected['optioncount'] = 123 123 '<li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a> (2)</li>' . … … 136 136 } 137 137 138 function test_wp_list_authors_exclude_admin() {138 public function test_wp_list_authors_exclude_admin() { 139 139 self::factory()->post->create( 140 140 array( … … 161 161 } 162 162 163 function test_wp_list_authors_show_fullname() {163 public function test_wp_list_authors_show_fullname() { 164 164 $expected['show_fullname'] = 165 165 '<li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob reno</a></li>' . … … 178 178 } 179 179 180 function test_wp_list_authors_hide_empty() {180 public function test_wp_list_authors_hide_empty() { 181 181 $fred_id = self::$fred_id; 182 182 … … 198 198 } 199 199 200 function test_wp_list_authors_echo() {200 public function test_wp_list_authors_echo() { 201 201 $expected['echo'] = 202 202 '<li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a></li>' . … … 208 208 } 209 209 210 function test_wp_list_authors_feed() {210 public function test_wp_list_authors_feed() { 211 211 $url0 = get_author_feed_link( self::$user_ids[0] ); 212 212 $url1 = get_author_feed_link( self::$user_ids[1] ); … … 229 229 } 230 230 231 function test_wp_list_authors_feed_image() {231 public function test_wp_list_authors_feed_image() { 232 232 $url0 = get_author_feed_link( self::$user_ids[0] ); 233 233 $url1 = get_author_feed_link( self::$user_ids[1] ); … … 253 253 * @ticket 26538 254 254 */ 255 function test_wp_list_authors_feed_type() {255 public function test_wp_list_authors_feed_type() { 256 256 $url0 = get_author_feed_link( self::$user_ids[0], 'atom' ); 257 257 $url1 = get_author_feed_link( self::$user_ids[1], 'atom' ); … … 275 275 } 276 276 277 function test_wp_list_authors_style() {277 public function test_wp_list_authors_style() { 278 278 $expected['style'] = 279 279 '<a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a>, ' . … … 292 292 } 293 293 294 function test_wp_list_authors_html() {294 public function test_wp_list_authors_html() { 295 295 $expected['html'] = 'bob, paul, zack'; 296 296
Note: See TracChangeset
for help on using the changeset viewer.