wordpress-develop/tests/phpunit/tests/image
Sergey Biryukov 3a63ed2939 Tests: Use more specific assertions in image saving tests.
When passed a `WP_Image_Editor` instance as the `$image` parameter, `wp_save_image_file()` returns an array on success, so we can specifically check for an array instead of any non-empty result.

Likewise, in PDF tests, when creating an attachment is expected to return an integer ID and not a `WP_Error` object, we can specifically check for that.

Follow-up to [1061/tests], [38949], [39617], [42792], [53529], [53530], [53531], [55019], [55066].

See #56793.

git-svn-id: https://develop.svn.wordpress.org/trunk@55070 602fd350-edb4-49c9-b593-d223f7449a82
2023-01-15 13:36:10 +00:00
..
base.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dimensions.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
editor.php Media: ensure the wp_editor_set_quality filter consistently passes the correct output mime type. 2022-10-07 19:15:59 +00:00
editorGd.php Tests: Bring some consistency to WP_Image_Editor_GD and WP_Image_Editor_Imagick tests. 2022-10-07 00:40:07 +00:00
editorImagick.php Tests: Bring some consistency to WP_Image_Editor_GD and WP_Image_Editor_Imagick tests. 2022-10-07 00:40:07 +00:00
functions.php Tests: Use more specific assertions in image saving tests. 2023-01-15 13:36:10 +00:00
header.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
intermediateSize.php Media: Revert WebP generation. 2022-09-19 22:51:53 +00:00
meta.php Media: Fix TypeError and improve wp_exif_frac2dec() to only return int or float. 2021-11-29 19:34:51 +00:00
resize.php Media: Revert WebP generation. 2022-09-19 22:51:53 +00:00
resizeGd.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
resizeImagick.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
siteIcon.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
size.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00