[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2
WordPress Trac
noreply at wordpress.org
Mon Nov 7 17:45:43 UTC 2022
#56793: Test tool and unit test improvements for 6.2
------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"54760" 54760]:
{{{
#!CommitTicketReference repository="" revision="54760"
Tests: Combine duplicate `update_posts_count()` tests.
This combines the newer test for `update_posts_count()` located in its own
file with the pre-existing one from `tests/multisite/site.php`, which was
essentially testing the same thing in a similar way.
Includes:
* Renaming the test class per the
[https://make.wordpress.org/core/handbook/testing/automated-testing
/writing-phpunit-tests/#naming-and-organization naming conventions].
* Adjusting comments per the documentation standards.
* Updating `@covers` tags for accuracy.
* Removing unnecessary blog switching.
* Using `assertSame()` to check the value type.
Follow-up to [28835], [29667], [52207].
See #57023, #56793.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list