Make WordPress Core


Ignore:
Timestamp:
10/27/2022 03:53:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Rename classes in phpunit/tests/comment/ per the naming conventions.

https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization

Follow-up to [47780], [48911], [49327], [50291], [50292], [50342], [50452], [50453], [50456], [50967], [50968], [50969], [51491], [51492], [51493], [51623], [51639], [51646], [51650], [51651], [51860], [52264], [52265], [53489], [53863].

See #56793.

File:
1 edited

Legend:

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

    r53863 r54704  
    66 * @covers ::wp_update_comment_count_now
    77 */
    8 class Tests_Update_Comment_Count_Now extends WP_UnitTestCase {
    9     public function _return_100() {
    10         return 100;
    11     }
     8class Tests_Comment_wpUpdateCommentCountNow extends WP_UnitTestCase {
    129
    1310    public function test_invalid_post_bails_early() {
     
    5148        remove_filter( 'pre_wp_update_comment_count_now', array( $this, '_return_100' ) );
    5249    }
     50
     51    public function _return_100() {
     52        return 100;
     53    }
    5354}
Note: See TracChangeset for help on using the changeset viewer.