Make WordPress Core


Ignore:
Timestamp:
09/01/2021 10:26:33 PM (3 years ago)
Author:
hellofromTonya
Message:

Tests: Add missing @covers tags for Tests_Admin_wpCommunityEvents.

Adds missing and moves placement of existing @covers tags for consistency.

Follow-up to [40607], [42726], [49145].

Props pbearne, jrf, hellofromTonya.
See #39265.

File:
1 edited

Legend:

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

    r51641 r51725  
    7070     *
    7171     * @since 4.8.0
     72     *
     73     * @covers WP_Community_Events::get_events
    7274     */
    7375    public function test_get_events_bad_response_code() {
     
    8385     *
    8486     * @since 4.8.0
     87     *
     88     * @covers WP_Community_Events::get_cached_events
    8589     */
    8690    public function test_get_cached_events_bad_response_code() {
     
    118122     *
    119123     * @since 4.8.0
     124     *
     125     * @covers WP_Community_Events::get_events
    120126     */
    121127    public function test_get_events_invalid_response() {
     
    131137     *
    132138     * @since 4.8.0
     139     *
     140     * @covers WP_Community_Events::get_cached_events
    133141     */
    134142    public function test_get_cached_events_invalid_response() {
     
    166174     *
    167175     * @since 4.8.0
     176     *
     177     * @covers WP_Community_Events::get_events
    168178     */
    169179    public function test_get_events_valid_response() {
     
    185195     *
    186196     * @since 4.8.0
     197     *
     198     * @covers WP_Community_Events::get_cached_events
    187199     */
    188200    public function test_get_cached_events_valid_response() {
     
    288300     * Test: `trim_events()` should immediately remove expired events.
    289301     *
     302     * @since 5.5.2
     303     *
    290304     * @covers WP_Community_Events::trim_events
    291      *
    292      * @since 5.5.2
    293305     */
    294306    public function test_trim_expired_events() {
     
    316328     * Test: get_events() should return the events with the WordCamp pinned in the prepared list.
    317329     *
    318      * @covers WP_Community_Events::trim_events
    319      *
    320330     * @since 4.9.7
    321331     * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`.
     332     *
     333     * @covers WP_Community_Events::trim_events
    322334     */
    323335    public function test_trim_events_pin_wordcamp() {
     
    421433     * falls into the list.
    422434     *
    423      * @covers WP_Community_Events::trim_events
    424      *
    425435     * @since 4.9.7
    426436     * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`.
     437     *
     438     * @covers WP_Community_Events::trim_events
    427439     */
    428440    public function test_trim_events_dont_pin_multiple_wordcamps() {
     
    546558     *
    547559     * @ticket 41083
     560     *
     561     * @covers WP_Community_Events::get_unsafe_client_ip
    548562     */
    549563    public function test_get_unsafe_client_ip( $raw_ip, $expected_result ) {
Note: See TracChangeset for help on using the changeset viewer.