Changeset 53866 for trunk/tests/phpunit/tests/locale.php
- Timestamp:
- 08/08/2022 11:39:06 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/locale.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/locale.php
r51568 r53866 16 16 } 17 17 18 /** 19 * @covers WP_Locale::get_weekday 20 */ 18 21 public function test_get_weekday() { 19 22 $this->assertSame( __( 'Sunday' ), $this->locale->get_weekday( 0 ) ); … … 26 29 } 27 30 31 /** 32 * @covers WP_Locale::get_weekday 33 */ 28 34 public function test_get_weekday_undefined_index() { 29 35 if ( PHP_VERSION_ID >= 80000 ) { … … 36 42 } 37 43 44 /** 45 * @covers WP_Locale::get_weekday_initial 46 */ 38 47 public function test_get_weekday_initial() { 39 48 $this->assertSame( __( 'S' ), $this->locale->get_weekday_initial( __( 'Sunday' ) ) ); … … 46 55 } 47 56 57 /** 58 * @covers WP_Locale::get_weekday_abbrev 59 */ 48 60 public function test_get_weekday_abbrev() { 49 61 $this->assertSame( __( 'Sun' ), $this->locale->get_weekday_abbrev( __( 'Sunday' ) ) ); … … 56 68 } 57 69 70 /** 71 * @covers WP_Locale::get_month 72 */ 58 73 public function test_get_month() { 59 74 $this->assertSame( __( 'January' ), $this->locale->get_month( 1 ) ); … … 71 86 } 72 87 88 /** 89 * @covers WP_Locale::get_month 90 */ 73 91 public function test_get_month_leading_zero() { 74 92 $this->assertSame( __( 'January' ), $this->locale->get_month( '01' ) ); … … 83 101 } 84 102 103 /** 104 * @covers WP_Locale::get_month_abbrev 105 */ 85 106 public function test_get_month_abbrev() { 86 107 $this->assertSame( __( 'Jan' ), $this->locale->get_month_abbrev( __( 'January' ) ) ); … … 98 119 } 99 120 121 /** 122 * @covers WP_Locale::get_meridiem 123 */ 100 124 public function test_get_meridiem() { 101 125 $this->assertSame( __( 'am' ), $this->locale->get_meridiem( 'am' ) ); … … 105 129 } 106 130 131 /** 132 * @covers WP_Locale::is_rtl 133 */ 107 134 public function test_is_rtl() { 108 135 $this->assertFalse( $this->locale->is_rtl() );
Note: See TracChangeset
for help on using the changeset viewer.