- Timestamp:
- 01/24/2024 07:55:53 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php
r57339 r57344 9 9 /** 10 10 * @covers ::instance 11 *12 * @return void13 11 */ 14 12 public function test_get_instance() { … … 19 17 } 20 18 21 /**22 * @return void23 */24 19 public function test_no_files_loaded_returns_false() { 25 20 $instance = new WP_Translation_Controller(); … … 30 25 /** 31 26 * @covers ::unload_textdomain 32 *33 * @return void34 27 */ 35 28 public function test_unload_not_loaded() { … … 46 39 * @covers ::locate_translation 47 40 * @covers ::get_files 48 *49 * @return void50 41 */ 51 42 public function test_unload_entire_textdomain() { … … 65 56 * @covers ::unload_file 66 57 * @covers WP_Translation_File::get_file 67 *68 * @return void69 58 */ 70 59 public function test_unload_file_is_not_actually_loaded() { … … 80 69 * @covers ::unload_textdomain 81 70 * @covers ::is_textdomain_loaded 82 *83 * @return void84 71 */ 85 72 public function test_unload_specific_locale() { … … 112 99 * @param string $file_contents 113 100 * @param string|bool $expected_error 114 * @return void115 *116 * @phpstan-param 'mo'|'php' $type117 101 */ 118 102 public function test_invalid_files( string $type, string $file_contents, $expected_error = null ) { … … 158 142 * @covers WP_Translation_Controller::load 159 143 * @covers WP_Translation_Controller::is_textdomain_loaded 160 *161 * @return void162 144 */ 163 145 public function test_load_non_existent_file() { … … 170 152 /** 171 153 * @covers WP_Translation_File::create 172 *173 * @return void174 154 */ 175 155 public function test_create_non_existent_file() { … … 179 159 /** 180 160 * @covers WP_Translation_File::create 181 *182 * @return void183 161 */ 184 162 public function test_create_invalid_filetype() { … … 200 178 * 201 179 * @param string $file 202 * @return void203 180 */ 204 181 public function test_simple_translation_files( string $file ) { … … 244 221 * @covers WP_Translation_File::get_plural_form 245 222 * @covers WP_Translation_File::make_plural_form_function 246 *247 * @return void248 223 */ 249 224 public function test_load_multiple_files() { … … 294 269 * @covers ::translate 295 270 * @covers ::translate_plural 296 *297 * @return void298 271 */ 299 272 public function test_load_multiple_locales() { … … 335 308 /** 336 309 * @covers ::unload_textdomain 337 *338 * @return void339 310 */ 340 311 public function test_unload_with_multiple_locales() { … … 372 343 * @covers ::load 373 344 * @covers ::locate_translation 374 *375 * @return void376 345 */ 377 346 public function test_load_with_default_textdomain() { … … 385 354 /** 386 355 * @covers ::load 387 *388 * @return void389 356 */ 390 357 public function test_load_same_file_twice() { … … 398 365 /** 399 366 * @covers ::load 400 *401 * @return void402 367 */ 403 368 public function test_load_file_is_already_loaded_for_different_textdomain() { … … 419 384 * @covers WP_Translation_File::get_plural_form 420 385 * @covers WP_Translation_File::make_plural_form_function 421 *422 * @return void423 386 */ 424 387 public function test_load_no_plurals() { … … 440 403 /** 441 404 * @covers ::get_headers 442 *443 * @return void444 405 */ 445 406 public function test_get_headers_no_loaded_translations() { … … 451 412 /** 452 413 * @covers ::get_headers 453 *454 * @return void455 414 */ 456 415 public function test_get_headers_with_default_textdomain() { … … 468 427 /** 469 428 * @covers ::get_headers 470 *471 * @return void472 429 */ 473 430 public function test_get_headers_no_loaded_translations_for_domain() { … … 481 438 /** 482 439 * @covers ::get_entries 483 *484 * @return void485 440 */ 486 441 public function test_get_entries_no_loaded_translations() { … … 492 447 /** 493 448 * @covers ::get_entries 494 *495 * @return void496 449 */ 497 450 public function test_get_entries_with_default_textdomain() { … … 510 463 /** 511 464 * @covers ::get_entries 512 *513 * @return void514 465 */ 515 466 public function test_get_entries_no_loaded_translations_for_domain() { … … 525 476 * @param string $source_file 526 477 * @param string $destination_format 527 * @return void528 *529 * @phpstan-param 'mo'|'php' $destination_format530 478 */ 531 479 public function test_convert_format( string $source_file, string $destination_format ) { … … 587 535 /** 588 536 * @covers WP_Translation_File::transform 589 *590 * @return void591 537 */ 592 538 public function test_convert_format_invalid_source() {
Note: See TracChangeset
for help on using the changeset viewer.