Make WordPress Core

Changeset 62328


Ignore:
Timestamp:
05/07/2026 09:45:24 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Tests: Rename the admin/includesComment.php test file to match the new pattern.

This aims to make the test suite directory and file structure more intuitive for new contributors to work with, as well as follow the PHPUnit recommended test class name pattern with having Test as the end of the class name.

Follow-up to [34456].

Props poena.
See #53010.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/Admin_Includes_Comment_CommentExists_Test.php

    r62327 r62328  
    44 * @group admin
    55 * @group comment
     6 *
     7 * @covers ::comment_exists
    68 */
    7 class Tests_Admin_IncludesComment extends WP_UnitTestCase {
     9class Admin_Includes_Comment_CommentExists_Test extends WP_UnitTestCase {
     10
    811    /**
    912     * Post ID to add comments to.
     
    4851    /**
    4952     * Verify that both the comment date and author must match for a comment to exist.
    50      *
    51      * @covers ::comment_exists
    5253     */
    5354    public function test_must_match_date_and_author() {
     
    5859    /**
    5960     * @ticket 33871
    60      *
    61      * @covers ::comment_exists
    6261     */
    6362    public function test_default_value_of_timezone_should_be_blog() {
     
    6766    /**
    6867     * @ticket 33871
    69      *
    70      * @covers ::comment_exists
    7168     */
    7269    public function test_should_respect_timezone_blog() {
     
    7673    /**
    7774     * @ticket 33871
    78      *
    79      * @covers ::comment_exists
    8075     */
    8176    public function test_should_respect_timezone_gmt() {
     
    8580    /**
    8681     * @ticket 33871
    87      *
    88      * @covers ::comment_exists
    8982     */
    9083    public function test_invalid_timezone_should_fall_back_on_blog() {
Note: See TracChangeset for help on using the changeset viewer.