Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:39:06 PM (3 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/l10n/loadTextdomainJustInTime.php

    r52248 r53866  
    6363    /**
    6464     * @ticket 34114
     65     *
     66     * @covers ::is_textdomain_loaded
    6567     */
    6668    public function test_plugin_translation_should_be_translated_without_calling_load_plugin_textdomain() {
     
    8284    /**
    8385     * @ticket 34114
     86     *
     87     * @covers ::is_textdomain_loaded
    8488     */
    8589    public function test_theme_translation_should_be_translated_without_calling_load_theme_textdomain() {
     
    103107    /**
    104108     * @ticket 34114
     109     *
     110     * @covers ::get_translations_for_domain
    105111     */
    106112    public function test_get_translations_for_domain_does_not_return_null_if_override_load_textdomain_is_used() {
     
    116122    /**
    117123     * @ticket 37113
     124     *
     125     * @covers ::is_textdomain_loaded
    118126     */
    119127    public function test_should_allow_unloading_of_text_domain() {
     
    155163    /**
    156164     * @ticket 26511
     165     *
     166     * @covers ::switch_to_locale
    157167     */
    158168    public function test_plugin_translation_after_switching_locale() {
     
    168178    /**
    169179     * @ticket 37997
     180     *
     181     * @covers ::switch_to_locale
    170182     */
    171183    public function test_plugin_translation_after_switching_locale_twice() {
     
    186198    /**
    187199     * @ticket 26511
     200     *
     201     * @covers ::switch_to_locale
    188202     */
    189203    public function test_theme_translation_after_switching_locale() {
     
    203217    /**
    204218     * @ticket 38485
     219     *
     220     * @covers ::wp_set_current_user
    205221     */
    206222    public function test_plugin_translation_with_user_locale() {
     
    217233    /**
    218234     * @ticket 38485
     235     *
     236     * @covers ::wp_set_current_user
    219237     */
    220238    public function test_theme_translation_with_user_locale() {
     
    234252    /**
    235253     * @ticket 37997
     254     *
     255     * @covers ::_load_textdomain_just_in_time
    236256     */
    237257    public function test_get_locale_is_called_only_once_per_textdomain() {
Note: See TracChangeset for help on using the changeset viewer.