Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (6 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/GetComments.php

    r38398 r42343  
    1818    /**
    1919     * A post with at least one comment
     20     *
    2021     * @var mixed
    2122     */
     
    2425    /**
    2526     * A post with no comments
     27     *
    2628     * @var mixed
    2729     */
     
    3133
    3234    public static function wpSetUpBeforeClass( $factory ) {
    33         self::$comment_post = $factory->post->create_and_get();
    34         self::$comment_ids = $factory->comment->create_post_comments( self::$comment_post->ID, 5 );
     35        self::$comment_post    = $factory->post->create_and_get();
     36        self::$comment_ids     = $factory->comment->create_post_comments( self::$comment_post->ID, 5 );
    3537        self::$no_comment_post = $factory->post->create_and_get();
    3638    }
     
    3941     * Get comments as a privilged user (administrator)
    4042     * Expects test to pass
     43     *
    4144     * @return void
    4245     */
     
    7679     * Get comments as a non-privileged user (subscriber)
    7780     * Expects test to fail
     81     *
    7882     * @return void
    7983     */
     
    96100     * Get comments with a bad nonce
    97101     * Expects test to fail
     102     *
    98103     * @return void
    99104     */
     
    116121     * Get comments for an invalid post
    117122     * Bad post IDs are set to 0, this should return valid XML
     123     *
    118124     * @return void
    119125     */
     
    136142     * Get comments for an invalid post
    137143     * Bad post IDs are set to 0, this should return valid XML
     144     *
    138145     * @return void
    139146     */
Note: See TracChangeset for help on using the changeset viewer.