Make WordPress Core


Ignore:
Timestamp:
03/21/2021 12:53:24 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Move the get_current_commenter() method next to the test it's used in.

Follow-up to [48133].

See #52625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/getPageOfComment.php

    r48937 r50559  
    487487
    488488                $this->assertContains( $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) );
     489        }
     490
     491        public function get_current_commenter() {
     492                return array(
     493                        'comment_author_email' => 'foo@bar.test',
     494                        'comment_author'       => 'Foo',
     495                        'comment_author_url'   => 'https://bar.test',
     496                );
    489497        }
    490498
     
    539547                wp_set_current_user( $current_user );
    540548        }
    541 
    542         public function get_current_commenter() {
    543                 return array(
    544                         'comment_author_email' => 'foo@bar.test',
    545                         'comment_author'       => 'Foo',
    546                         'comment_author_url'   => 'https://bar.test',
    547                 );
    548         }
    549549}
Note: See TracChangeset for help on using the changeset viewer.