Make WordPress Core


Ignore:
Timestamp:
06/24/2022 02:18:20 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Put @covers tags before @params in Ajax and Formatting groups.

This makes the placement more consistent with the rest of the test suite.

Follow-up to [53561], [53562].

See #39265.

File:
1 edited

Legend:

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

    r53561 r53571  
    5858     * Expects test to pass.
    5959     *
    60      * @param WP_Comment $comment Comment object.
    61      * @param string     $action  Action: 'trash', 'untrash', etc.
    62      *
    6360     * @covers ::wp_ajax_delete_comment
    6461     * @covers ::_wp_ajax_delete_comment_response
     62     *
     63     * @param WP_Comment $comment Comment object.
     64     * @param string     $action  Action: 'trash', 'untrash', etc.
    6565     */
    6666    public function _test_as_admin( $comment, $action ) {
     
    120120     * Expects test to fail.
    121121     *
    122      * @param WP_Comment $comment Comment object.
    123      * @param string     $action  Action: 'trash', 'untrash', etc.
    124      *
    125      * @covers ::wp_ajax_delete_comment
     122     * @covers ::wp_ajax_delete_comment
     123     *
     124     * @param WP_Comment $comment Comment object.
     125     * @param string     $action  Action: 'trash', 'untrash', etc.
    126126     */
    127127    public function _test_as_subscriber( $comment, $action ) {
     
    154154     * Expects test to fail.
    155155     *
    156      * @param WP_Comment $comment Comment object.
    157      * @param string     $action  Action: 'trash', 'untrash', etc.
    158      *
    159      * @covers ::wp_ajax_delete_comment
     156     * @covers ::wp_ajax_delete_comment
     157     *
     158     * @param WP_Comment $comment Comment object.
     159     * @param string     $action  Action: 'trash', 'untrash', etc.
    160160     */
    161161    public function _test_with_bad_nonce( $comment, $action ) {
     
    187187     * Expects test to fail.
    188188     *
    189      * @param WP_Comment $comment Comment object.
    190      * @param string     $action  Action: 'trash', 'untrash', etc.
    191      *
    192      * @covers ::wp_ajax_delete_comment
     189     * @covers ::wp_ajax_delete_comment
     190     *
     191     * @param WP_Comment $comment Comment object.
     192     * @param string     $action  Action: 'trash', 'untrash', etc.
    193193     */
    194194    public function _test_with_bad_id( $comment, $action ) {
     
    226226     * Expects test to fail.
    227227     *
    228      * @param WP_Comment $comment Comment object.
    229      * @param string     $action  Action: 'trash', 'untrash', etc.
    230      *
    231      * @covers ::wp_ajax_delete_comment
     228     * @covers ::wp_ajax_delete_comment
     229     *
     230     * @param WP_Comment $comment Comment object.
     231     * @param string     $action  Action: 'trash', 'untrash', etc.
    232232     */
    233233    public function _test_double_action( $comment, $action ) {
Note: See TracChangeset for help on using the changeset viewer.