Changeset 52010 for trunk/tests/phpunit/tests/l10n.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n.php
r51462 r52010 19 19 * @ticket 35961 20 20 */ 21 function test_n_noop() {21 public function test_n_noop() { 22 22 $text_domain = 'text-domain'; 23 23 $nooped_plural = _n_noop( '%s post', '%s posts', $text_domain ); … … 32 32 * @ticket 35961 33 33 */ 34 function test_nx_noop() {34 public function test_nx_noop() { 35 35 $text_domain = 'text-domain'; 36 36 $nooped_plural = _nx_noop( '%s post', '%s posts', 'my-context', $text_domain ); … … 46 46 * @ticket 35073 47 47 */ 48 function test_before_last_bar() {48 public function test_before_last_bar() { 49 49 $this->assertSame( 'no-bar-at-all', before_last_bar( 'no-bar-at-all' ) ); 50 50 $this->assertSame( 'before-last-bar', before_last_bar( 'before-last-bar|after-bar' ) ); … … 55 55 * @ticket 35950 56 56 */ 57 function test_get_available_languages() {57 public function test_get_available_languages() { 58 58 $array = get_available_languages(); 59 59 $this->assertIsArray( $array ); … … 69 69 * @ticket 35284 70 70 */ 71 function test_wp_get_installed_translations_for_core() {71 public function test_wp_get_installed_translations_for_core() { 72 72 $installed_translations = wp_get_installed_translations( 'core' ); 73 73 $this->assertIsArray( $installed_translations ); … … 91 91 * @ticket 35294 92 92 */ 93 function test_wp_dropdown_languages() {93 public function test_wp_dropdown_languages() { 94 94 $args = array( 95 95 'id' => 'foo', … … 113 113 * @ticket 38632 114 114 */ 115 function test_wp_dropdown_languages_site_default() {115 public function test_wp_dropdown_languages_site_default() { 116 116 $args = array( 117 117 'id' => 'foo', … … 137 137 * @ticket 44494 138 138 */ 139 function test_wp_dropdown_languages_exclude_en_us() {139 public function test_wp_dropdown_languages_exclude_en_us() { 140 140 $args = array( 141 141 'id' => 'foo', … … 155 155 * @ticket 38632 156 156 */ 157 function test_wp_dropdown_languages_en_US_selected() {157 public function test_wp_dropdown_languages_en_US_selected() { 158 158 $args = array( 159 159 'id' => 'foo', … … 177 177 * Add site default language to ja_JP in dropdown 178 178 */ 179 function test_wp_dropdown_languages_site_default_ja_JP() {179 public function test_wp_dropdown_languages_site_default_ja_JP() { 180 180 $args = array( 181 181 'id' => 'foo', … … 201 201 * Select dropdown language from de_DE to ja_JP 202 202 */ 203 function test_wp_dropdown_languages_ja_JP_selected() {203 public function test_wp_dropdown_languages_ja_JP_selected() { 204 204 $args = array( 205 205 'id' => 'foo', … … 225 225 * @return array 226 226 */ 227 function wp_dropdown_languages_filter() {227 private function wp_dropdown_languages_filter() { 228 228 return array( 229 229 'de_DE' => array( … … 248 248 * @ticket 35284 249 249 */ 250 function test_wp_get_pomo_file_data() {250 public function test_wp_get_pomo_file_data() { 251 251 $file = DIR_TESTDATA . '/pomo/empty.po'; 252 252 $array = wp_get_pomo_file_data( $file ); … … 274 274 * @ticket 44541 275 275 */ 276 function test_length_of_excerpt_should_be_counted_by_words() {276 public function test_length_of_excerpt_should_be_counted_by_words() { 277 277 global $post; 278 278 … … 298 298 * @ticket 44541 299 299 */ 300 function test_length_of_excerpt_should_be_counted_by_chars() {300 public function test_length_of_excerpt_should_be_counted_by_chars() { 301 301 global $post; 302 302 … … 322 322 * @ticket 44541 323 323 */ 324 function test_length_of_excerpt_should_be_counted_by_chars_in_japanese() {324 public function test_length_of_excerpt_should_be_counted_by_chars_in_japanese() { 325 325 global $post; 326 326 … … 346 346 * @ticket 44541 347 347 */ 348 function test_length_of_excerpt_rss_should_be_counted_by_words() {348 public function test_length_of_excerpt_rss_should_be_counted_by_words() { 349 349 global $post; 350 350 … … 370 370 * @ticket 44541 371 371 */ 372 function test_length_of_excerpt_rss_should_be_counted_by_chars() {372 public function test_length_of_excerpt_rss_should_be_counted_by_chars() { 373 373 global $post; 374 374 … … 395 395 * @ticket 44541 396 396 */ 397 function test_length_of_draft_should_be_counted_by_words() {397 public function test_length_of_draft_should_be_counted_by_words() { 398 398 require_once ABSPATH . 'wp-admin/includes/dashboard.php'; 399 399 … … 419 419 * @ticket 44541 420 420 */ 421 function test_length_of_draft_should_be_counted_by_chars() {421 public function test_length_of_draft_should_be_counted_by_chars() { 422 422 require_once ABSPATH . 'wp-admin/includes/dashboard.php'; 423 423 … … 443 443 * @ticket 44541 444 444 */ 445 function test_length_of_draft_should_be_counted_by_chars_in_japanese() {445 public function test_length_of_draft_should_be_counted_by_chars_in_japanese() { 446 446 require_once ABSPATH . 'wp-admin/includes/dashboard.php'; 447 447 … … 467 467 * @ticket 44541 468 468 */ 469 function test_length_of_comment_excerpt_should_be_counted_by_words() {469 public function test_length_of_comment_excerpt_should_be_counted_by_words() { 470 470 switch_to_locale( 'en_US' ); 471 471 … … 485 485 * @ticket 44541 486 486 */ 487 function test_length_of_comment_excerpt_should_be_counted_by_chars() {487 public function test_length_of_comment_excerpt_should_be_counted_by_chars() { 488 488 switch_to_locale( 'ja_JP' ); 489 489 … … 503 503 * @ticket 44541 504 504 */ 505 function test_length_of_comment_excerpt_should_be_counted_by_chars_in_Japanese() {505 public function test_length_of_comment_excerpt_should_be_counted_by_chars_in_Japanese() { 506 506 switch_to_locale( 'ja_JP' ); 507 507
Note: See TracChangeset
for help on using the changeset viewer.