Make WordPress Core


Ignore:
Timestamp:
01/24/2024 07:55:53 AM (23 months ago)
Author:
swissspidy
Message:

I18N: Improve docblocks after [57337].

Props mukesh27.
See #59656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php

    r57339 r57344  
    99    /**
    1010     * @covers ::instance
    11      *
    12      * @return void
    1311     */
    1412    public function test_get_instance() {
     
    1917    }
    2018
    21     /**
    22      * @return void
    23      */
    2419    public function test_no_files_loaded_returns_false() {
    2520        $instance = new WP_Translation_Controller();
     
    3025    /**
    3126     * @covers ::unload_textdomain
    32      *
    33      * @return void
    3427     */
    3528    public function test_unload_not_loaded() {
     
    4639     * @covers ::locate_translation
    4740     * @covers ::get_files
    48      *
    49      * @return void
    5041     */
    5142    public function test_unload_entire_textdomain() {
     
    6556     * @covers ::unload_file
    6657     * @covers WP_Translation_File::get_file
    67      *
    68      * @return void
    6958     */
    7059    public function test_unload_file_is_not_actually_loaded() {
     
    8069     * @covers ::unload_textdomain
    8170     * @covers ::is_textdomain_loaded
    82      *
    83      * @return void
    8471     */
    8572    public function test_unload_specific_locale() {
     
    11299     * @param string $file_contents
    113100     * @param string|bool $expected_error
    114      * @return void
    115      *
    116      * @phpstan-param 'mo'|'php' $type
    117101     */
    118102    public function test_invalid_files( string $type, string $file_contents, $expected_error = null ) {
     
    158142     * @covers WP_Translation_Controller::load
    159143     * @covers WP_Translation_Controller::is_textdomain_loaded
    160      *
    161      * @return void
    162144     */
    163145    public function test_load_non_existent_file() {
     
    170152    /**
    171153     * @covers WP_Translation_File::create
    172      *
    173      * @return void
    174154     */
    175155    public function test_create_non_existent_file() {
     
    179159    /**
    180160     * @covers WP_Translation_File::create
    181      *
    182      * @return void
    183161     */
    184162    public function test_create_invalid_filetype() {
     
    200178     *
    201179     * @param string $file
    202      * @return void
    203180     */
    204181    public function test_simple_translation_files( string $file ) {
     
    244221     * @covers WP_Translation_File::get_plural_form
    245222     * @covers WP_Translation_File::make_plural_form_function
    246      *
    247      * @return void
    248223     */
    249224    public function test_load_multiple_files() {
     
    294269     * @covers ::translate
    295270     * @covers ::translate_plural
    296      *
    297      * @return void
    298271     */
    299272    public function test_load_multiple_locales() {
     
    335308    /**
    336309     * @covers ::unload_textdomain
    337      *
    338      * @return void
    339310     */
    340311    public function test_unload_with_multiple_locales() {
     
    372343     * @covers ::load
    373344     * @covers ::locate_translation
    374      *
    375      * @return void
    376345     */
    377346    public function test_load_with_default_textdomain() {
     
    385354    /**
    386355     * @covers ::load
    387      *
    388      * @return void
    389356     */
    390357    public function test_load_same_file_twice() {
     
    398365    /**
    399366     * @covers ::load
    400      *
    401      * @return void
    402367     */
    403368    public function test_load_file_is_already_loaded_for_different_textdomain() {
     
    419384     * @covers WP_Translation_File::get_plural_form
    420385     * @covers WP_Translation_File::make_plural_form_function
    421      *
    422      * @return void
    423386     */
    424387    public function test_load_no_plurals() {
     
    440403    /**
    441404     * @covers ::get_headers
    442      *
    443      * @return void
    444405     */
    445406    public function test_get_headers_no_loaded_translations() {
     
    451412    /**
    452413     * @covers ::get_headers
    453      *
    454      * @return void
    455414     */
    456415    public function test_get_headers_with_default_textdomain() {
     
    468427    /**
    469428     * @covers ::get_headers
    470      *
    471      * @return void
    472429     */
    473430    public function test_get_headers_no_loaded_translations_for_domain() {
     
    481438    /**
    482439     * @covers ::get_entries
    483      *
    484      * @return void
    485440     */
    486441    public function test_get_entries_no_loaded_translations() {
     
    492447    /**
    493448     * @covers ::get_entries
    494      *
    495      * @return void
    496449     */
    497450    public function test_get_entries_with_default_textdomain() {
     
    510463    /**
    511464     * @covers ::get_entries
    512      *
    513      * @return void
    514465     */
    515466    public function test_get_entries_no_loaded_translations_for_domain() {
     
    525476     * @param string $source_file
    526477     * @param string $destination_format
    527      * @return void
    528      *
    529      * @phpstan-param 'mo'|'php' $destination_format
    530478     */
    531479    public function test_convert_format( string $source_file, string $destination_format ) {
     
    587535    /**
    588536     * @covers WP_Translation_File::transform
    589      *
    590      * @return void
    591537     */
    592538    public function test_convert_format_invalid_source() {
Note: See TracChangeset for help on using the changeset viewer.