Make WordPress Core

Changeset 53487


Ignore:
Timestamp:
06/11/2022 01:41:45 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Rename the test file and class for wp_list_authors() tests.

This matches the name of the function being tested.

Follow-up to [27550].

See #55652.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/wpListAuthors.php

    r53486 r53487  
    33 * @group author
    44 * @group user
     5 * @covers ::wp_list_authors
    56 */
    6 class Tests_User_ListAuthors extends WP_UnitTestCase {
     7class Tests_User_wpListAuthors extends WP_UnitTestCase {
    78        public static $user_ids = array();
    89        public static $fred_id;
    910        public static $posts     = array();
    1011        public static $user_urls = array();
    11                 /* Defaults
    12                 'orderby'       => 'name',
    13                 'order'         => 'ASC',
    14                 'number'        => null,
    15                 'optioncount'   => false,
    16                 'exclude_admin' => true,
    17                 'show_fullname' => false,
    18                 'hide_empty'    => true,
    19                 'echo'          => true,
    20                 'feed'          => [empty string],
    21                 'feed_image'    => [empty string],
    22                 'feed_type'     => [empty string],
    23                 'style'         => 'list',
    24                 'html'          => true );
    25                 */
     12
     13        /*
     14         * Defaults:
     15         * 'orderby'       => 'name',
     16         * 'order'         => 'ASC',
     17         * 'number'        => null,
     18         * 'optioncount'   => false,
     19         * 'exclude_admin' => true,
     20         * 'show_fullname' => false,
     21         * 'hide_empty'    => true,
     22         * 'echo'          => true,
     23         * 'feed'          => [empty string],
     24         * 'feed_image'    => [empty string],
     25         * 'feed_type'     => [empty string],
     26         * 'style'         => 'list',
     27         * 'html'          => true,
     28         */
    2629        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
    2730                self::$user_ids[] = $factory->user->create(
Note: See TracChangeset for help on using the changeset viewer.