mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 23:50:43 +01:00
When passed a GD resource as `$image`, `wp_save_image_file()` should throw a deprecated argument notice: {{{ Function wp_save_image_file was called with an argument that is deprecated since version 3.5.0! $image needs to be a WP_Image_Editor object. }}} The test verifies that the notice is thrown as expected. Includes: * Removing the `Tests_Functions_Deprecated` class. It appears to be initially intended for testing deprecated functions or arguments, but this was later superseded by the `@expectedDeprecated` annotation. * Removing a redundant test for `wp_save_image_file()` **not** throwing a deprecation notice when passed a `WP_Image_Editor` instance. This is already covered by `test_wp_save_image_file()`, which would fail if there is an unexpected deprecation notice. Follow-up to [1061/tests], [25408], [25409], [53529]. See #56793. git-svn-id: https://develop.svn.wordpress.org/trunk@55066 602fd350-edb4-49c9-b593-d223f7449a82