Changeset 53542 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 06/20/2022 10:24:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r53541 r53542 9 9 10 10 /** 11 * Setup test fixture11 * Includes the required files. 12 12 */ 13 13 public function set_up() { … … 29 29 30 30 /** 31 * Get the available image editor engine classes.31 * Gets the available image editor engine classes. 32 32 * 33 33 * @return string[] Available image editor classes; empty array when none are available. … … 56 56 57 57 /** 58 * Get the MIME type of a file58 * Gets the MIME type of a file. 59 59 * 60 60 * @param string $filename … … 250 250 251 251 /** 252 * Test wp_save_image_file() and mime types.252 * Tests wp_save_image_file() and mime types. 253 253 * 254 254 * @dataProvider data_wp_save_image_file … … 329 329 330 330 /** 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. 332 332 * 333 333 * @dataProvider data_image_editor_engine_classes … … 363 363 364 364 /** 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. 366 366 * 367 367 * @dataProvider data_inferred_mime_types_when_saving_an_image … … 442 442 443 443 /** 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. 445 445 * 446 446 * @ticket 17814 … … 454 454 455 455 /** 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. 457 457 * 458 458 * @ticket 17814 … … 465 465 466 466 /** 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. 468 468 * 469 469 * @dataProvider data_image_editor_engine_classes … … 546 546 * @covers ::wp_crop_image 547 547 */ 548 public function test_wp_crop_image_should_fail_with_wp_error_object_if_file_does_not_exist s() {548 public function test_wp_crop_image_should_fail_with_wp_error_object_if_file_does_not_exist() { 549 549 $file = wp_crop_image( 550 550 DIR_TESTDATA . '/images/canoladoesnotexist.jpg', … … 706 706 707 707 /** 708 * Crop setting for PDF.708 * Tests crop setting for PDF. 709 709 * 710 710 * @ticket 43226 … … 847 847 848 848 /** 849 * Test PDF preview doesn't overwrite existing JPEG.849 * Tests that PDF preview does not overwrite existing JPEG. 850 850 * 851 851 * @ticket 39875 … … 903 903 904 904 /** 905 * Test for wp_exif_frac2dec verified that itproperly handles edge cases905 * Tests that wp_exif_frac2dec() properly handles edge cases 906 906 * and always returns an int or float, or 0 for failures. 907 907 *
Note: See TracChangeset
for help on using the changeset viewer.