Make WordPress Core


Ignore:
Timestamp:
06/20/2022 10:24:03 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use third-person singular verbs for function descriptions in Tests_Image_Functions, per the documentation standards.

See #55646.

File:
1 edited

Legend:

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

    r53541 r53542  
    99
    1010    /**
    11      * Setup test fixture
     11     * Includes the required files.
    1212     */
    1313    public function set_up() {
     
    2929
    3030    /**
    31      * Get the available image editor engine classes.
     31     * Gets the available image editor engine classes.
    3232     *
    3333     * @return string[] Available image editor classes; empty array when none are available.
     
    5656
    5757    /**
    58      * Get the MIME type of a file
     58     * Gets the MIME type of a file.
    5959     *
    6060     * @param string $filename
     
    250250
    251251    /**
    252      * Test wp_save_image_file() and mime types.
     252     * Tests wp_save_image_file() and mime types.
    253253     *
    254254     * @dataProvider data_wp_save_image_file
     
    329329
    330330    /**
    331      * Test that a passed mime type overrides the extension in the filename when saving an image.
     331     * Tests that a passed mime type overrides the extension in the filename when saving an image.
    332332     *
    333333     * @dataProvider data_image_editor_engine_classes
     
    363363
    364364    /**
    365      * Test that mime types are correctly inferred from file extensions when saving an image.
     365     * Tests that mime types are correctly inferred from file extensions when saving an image.
    366366     *
    367367     * @dataProvider data_inferred_mime_types_when_saving_an_image
     
    442442
    443443    /**
    444      * Test that the deprecated wp_load_image() function fails when loading a directory.
     444     * Tests that the deprecated wp_load_image() function fails when loading a directory.
    445445     *
    446446     * @ticket 17814
     
    454454
    455455    /**
    456      * Test that the wp_get_image_editor() function fails when loading a directory.
     456     * Tests that the wp_get_image_editor() function fails when loading a directory.
    457457     *
    458458     * @ticket 17814
     
    465465
    466466    /**
    467      * Test that the load() method in an image editor class fails when loading a directory.
     467     * Tests that the load() method in an image editor class fails when loading a directory.
    468468     *
    469469     * @dataProvider data_image_editor_engine_classes
     
    546546     * @covers ::wp_crop_image
    547547     */
    548     public function test_wp_crop_image_should_fail_with_wp_error_object_if_file_does_not_exists() {
     548    public function test_wp_crop_image_should_fail_with_wp_error_object_if_file_does_not_exist() {
    549549        $file = wp_crop_image(
    550550            DIR_TESTDATA . '/images/canoladoesnotexist.jpg',
     
    706706
    707707    /**
    708      * Crop setting for PDF.
     708     * Tests crop setting for PDF.
    709709     *
    710710     * @ticket 43226
     
    847847
    848848    /**
    849      * Test PDF preview doesn't overwrite existing JPEG.
     849     * Tests that PDF preview does not overwrite existing JPEG.
    850850     *
    851851     * @ticket 39875
     
    903903
    904904    /**
    905      * Test for wp_exif_frac2dec verified that it properly handles edge cases
     905     * Tests that wp_exif_frac2dec() properly handles edge cases
    906906     * and always returns an int or float, or 0 for failures.
    907907     *
Note: See TracChangeset for help on using the changeset viewer.