Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:39:06 PM (4 years ago)
Author:
azaozz
Message:

Build/Test Tools: Add @covers tags to the l10n and i18n tests.

Props pbearne, jrf, hellofromTonya, patopaiar, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/locale.php

    r51568 r53866  
    1616        }
    1717
     18        /**
     19         * @covers WP_Locale::get_weekday
     20         */
    1821        public function test_get_weekday() {
    1922                $this->assertSame( __( 'Sunday' ), $this->locale->get_weekday( 0 ) );
    … …  
    2629        }
    2730
     31        /**
     32         * @covers WP_Locale::get_weekday
     33         */
    2834        public function test_get_weekday_undefined_index() {
    2935                if ( PHP_VERSION_ID >= 80000 ) {
    … …  
    3642        }
    3743
     44        /**
     45         * @covers WP_Locale::get_weekday_initial
     46         */
    3847        public function test_get_weekday_initial() {
    3948                $this->assertSame( __( 'S' ), $this->locale->get_weekday_initial( __( 'Sunday' ) ) );
    … …  
    4655        }
    4756
     57        /**
     58         * @covers WP_Locale::get_weekday_abbrev
     59         */
    4860        public function test_get_weekday_abbrev() {
    4961                $this->assertSame( __( 'Sun' ), $this->locale->get_weekday_abbrev( __( 'Sunday' ) ) );
    … …  
    5668        }
    5769
     70        /**
     71         * @covers WP_Locale::get_month
     72         */
    5873        public function test_get_month() {
    5974                $this->assertSame( __( 'January' ), $this->locale->get_month( 1 ) );
    … …  
    7186        }
    7287
     88        /**
     89         * @covers WP_Locale::get_month
     90         */
    7391        public function test_get_month_leading_zero() {
    7492                $this->assertSame( __( 'January' ), $this->locale->get_month( '01' ) );
    … …  
    83101        }
    84102
     103        /**
     104         * @covers WP_Locale::get_month_abbrev
     105         */
    85106        public function test_get_month_abbrev() {
    86107                $this->assertSame( __( 'Jan' ), $this->locale->get_month_abbrev( __( 'January' ) ) );
    … …  
    98119        }
    99120
     121        /**
     122         * @covers WP_Locale::get_meridiem
     123         */
    100124        public function test_get_meridiem() {
    101125                $this->assertSame( __( 'am' ), $this->locale->get_meridiem( 'am' ) );
    … …  
    105129        }
    106130
     131        /**
     132         * @covers WP_Locale::is_rtl
     133         */
    107134        public function test_is_rtl() {
    108135                $this->assertFalse( $this->locale->is_rtl() );
Note: See TracChangeset for help on using the changeset viewer.