Make WordPress Core

Changeset 52780


Ignore:
Timestamp:
02/21/2022 02:50:07 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/.

Follow-up to [42971], [45371], [46159], [46175], [47779], [50962], [50964], [51910], [52778].

Props azouamauriac, SergeyBiryukov.
See #54725.

Location:
trunk/tests/phpunit/tests/functions
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/anonymization.php

    r51792 r52780  
    2020
    2121        /**
    22          * Test that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats.
     22         * Tests that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats.
    2323         *
    2424         * @dataProvider data_wp_privacy_anonymize_ip
     
    4141
    4242        /**
    43          * Provide test cases for `test_wp_privacy_anonymize_ip()`.
     43         * Data provider for `test_wp_privacy_anonymize_ip()`.
    4444         *
    4545         * @since 4.9.6 Moved from `Test_WP_Community_Events::data_get_unsafe_client_ip_anonymization()`.
     
    176176
    177177        /**
    178          * Test that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats.
     178         * Tests that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats.
    179179         *
    180180         * @dataProvider data_wp_privacy_anonymize_ip_with_inet_dependency
     
    195195
    196196        /**
    197          * Provide test cases for `test_wp_privacy_anonymize_ip()`.
     197         * Data provider for `test_wp_privacy_anonymize_ip()`.
    198198         *
    199199         * @since 4.9.6 Moved from `Test_WP_Community_Events::data_get_unsafe_client_ip_anonymization()`.
     
    262262
    263263        /**
    264          * Test email anonymization of `wp_privacy_anonymize_data()`.
     264         * Tests email anonymization of `wp_privacy_anonymize_data()`.
    265265         */
    266266        public function test_anonymize_email() {
     
    269269
    270270        /**
    271          * Test url anonymization of `wp_privacy_anonymize_data()`.
     271         * Tests URL anonymization of `wp_privacy_anonymize_data()`.
    272272         */
    273273        public function test_anonymize_url() {
     
    276276
    277277        /**
    278          * Test date anonymization of `wp_privacy_anonymize_data()`.
     278         * Tests date anonymization of `wp_privacy_anonymize_data()`.
    279279         */
    280280        public function test_anonymize_date() {
     
    283283
    284284        /**
    285          * Test text anonymization of `wp_privacy_anonymize_data()`.
     285         * Tests text anonymization of `wp_privacy_anonymize_data()`.
    286286         */
    287287        public function test_anonymize_text() {
     
    291291
    292292        /**
    293          * Test long text anonymization of `wp_privacy_anonymize_data()`.
     293         * Tests long text anonymization of `wp_privacy_anonymize_data()`.
    294294         */
    295295        public function test_anonymize_long_text() {
     
    299299
    300300        /**
    301          * Test text anonymization when a filter is added.
     301         * Tests text anonymization when a filter is added.
    302302         *
    303303         * @ticket 44141
     
    312312
    313313        /**
    314          * Change the anonymized value for URLs.
     314         * Changes the anonymized value for URLs.
    315315         *
    316316         * @since 4.9.8
  • trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php

    r51938 r52780  
    99
    1010        /**
    11          * Test the handling of invalid data passed as the $path parameter.
     11         * Tests the handling of invalid data passed as the $path parameter.
    1212         *
    1313         * @ticket 52241
     
    5454
    5555        /**
    56          * Test the handling of a non-path text string passed as the $path parameter.
     56         * Tests the handling of a non-path text string passed as the $path parameter.
    5757         *
    5858         * @ticket 52241
     
    106106
    107107        /**
    108          * Test the behaviour of the function when the transient doesn't exist.
     108         * Tests the behaviour of the function when the transient doesn't exist.
    109109         *
    110110         * @ticket 52241
     
    122122
    123123        /**
    124          * Test the behaviour of the function when the transient does exist, but is not an array.
     124         * Tests the behaviour of the function when the transient does exist, but is not an array.
    125125         *
    126126         * In particular, this tests that no PHP TypeErrors are being thrown.
  • trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php

    r52777 r52780  
    1212
    1313        /**
    14          * Test cleanup header of header comment.
     14         * Tests _cleanup_header_comment().
    1515         *
    1616         * @dataProvider data_cleanup_header_comment
     
    2424
    2525        /**
    26          * Data provider for test_cleanup_header_comment.
     26         * Data provider for test_cleanup_header_comment().
    2727         *
    2828         * @return array[] Test parameters {
  • trunk/tests/phpunit/tests/functions/doEnclose.php

    r52382 r52780  
    3030
    3131        /**
    32          * Test the function with an explicit content input.
     32         * Tests the function with an explicit content input.
    3333         *
    3434         * @since 5.3.0
     
    4646
    4747        /**
    48          * Test the function with an implicit content input.
     48         * Tests the function with an implicit content input.
    4949         *
    5050         * @since 5.3.0
     
    6666
    6767        /**
    68          * Dataprovider for `test_function_with_explicit_content_input()`
     68         * Data provider for `test_function_with_explicit_content_input()`
    6969         * and `test_function_with_implicit_content_input()`.
    7070         *
  • trunk/tests/phpunit/tests/functions/wpArrayGet.php

    r50970 r52780  
    1212
    1313        /**
    14          * Test _wp_array_get() with invalid parameters.
     14         * Tests _wp_array_get() with invalid parameters.
    1515         *
    1616         * @ticket 51720
     
    5858
    5959        /**
    60          * Test _wp_array_get() with non-subtree paths.
     60         * Tests _wp_array_get() with non-subtree paths.
    6161         *
    6262         * @ticket 51720
     
    112112
    113113        /**
    114          * Test _wp_array_get() with subtrees.
     114         * Tests _wp_array_get() with subtrees.
    115115         *
    116116         * @ticket 51720
     
    161161
    162162        /**
    163          * Test _wp_array_get() with zero strings.
     163         * Tests _wp_array_get() with zero strings.
    164164         *
    165165         * @ticket 51720
     
    212212
    213213        /**
    214          * Test _wp_array_get() with null values.
     214         * Tests _wp_array_get() with null values.
    215215         *
    216216         * @ticket 51720
     
    254254
    255255        /**
    256          * Test _wp_array_get() with empty paths.
     256         * Tests _wp_array_get() with empty paths.
    257257         *
    258258         * @ticket 51720
  • trunk/tests/phpunit/tests/functions/wpArraySet.php

    r50966 r52780  
    1212
    1313        /**
    14          * Test _wp_array_set() with invalid parameters.
     14         * Tests _wp_array_set() with invalid parameters.
    1515         *
    1616         * @ticket 53175
     
    5454
    5555        /**
    56          * Test _wp_array_set() with simple non-subtree path.
     56         * Tests _wp_array_set() with simple non-subtree path.
    5757         *
    5858         * @ticket 53175
     
    8585
    8686        /**
    87          * Test _wp_array_set() with subtree paths.
     87         * Tests _wp_array_set() with subtree paths.
    8888         *
    8989         * @ticket 53175
  • trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php

    r52774 r52780  
    1212
    1313        /**
    14          * Test wp_array_slice_assoc().
     14         * Tests wp_array_slice_assoc().
    1515         *
    1616         * @dataProvider data_wp_array_slice_assoc_arrays
     
    2727
    2828        /**
    29          * Test data for wp_array_slice_assoc().
     29         * Data provider for wp_array_slice_assoc().
    3030         *
    3131         * @return array
  • trunk/tests/phpunit/tests/functions/wpToKebabCase.php

    r52778 r52780  
    1212
    1313        /**
    14          * Test _wp_to_kebab_case().
     14         * Tests _wp_to_kebab_case().
    1515         *
    1616         * @dataProvider data_wp_to_kebab_case
  • trunk/tests/phpunit/tests/functions/wpValidateBoolean.php

    r52777 r52780  
    1010
    1111        /**
    12          * Test wp_validate_boolean().
     12         * Tests wp_validate_boolean().
    1313         *
    1414         * @dataProvider data_wp_validate_boolean
Note: See TracChangeset for help on using the changeset viewer.