Changeset 35242 for trunk/tests/phpunit/tests/user/listAuthors.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/listAuthors.php
r35225 r35242 72 72 73 73 function test_wp_list_authors_exclude_admin() { 74 self:: $factory->post->create( array( 'post_type' => 'post', 'post_author' => 1 ) );74 self::factory()->post->create( array( 'post_type' => 'post', 'post_author' => 1 ) ); 75 75 $expected['exclude_admin'] = '<li><a href="' . get_author_posts_url( 1 ) . '" title="Posts by admin">admin</a></li><li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a></li><li><a href="' . self::$user_urls[2] . '" title="Posts by paul">paul</a></li><li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>'; 76 76 $this->AssertEquals( $expected['exclude_admin'], wp_list_authors( array( 'echo' => false, 'exclude_admin' => 0 ) ) );
Note: See TracChangeset
for help on using the changeset viewer.