wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov c17a4760b7 Tests: Move the test for wp_save_image_file() with a GD resource to a more appropriate place.
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
2023-01-14 02:06:02 +00:00
..
addMagicQuotes.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
allowedProtocols.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
anonymization.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
canonicalCharset.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
cleanDirsizeCache.php Docs: Align spelling with American English. 2022-10-21 21:10:29 +00:00
cleanupHeaderComment.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
doEnclose.php Tests: Bring some consistency to mocking HTTP requests in unit tests. 2023-01-05 10:21:19 +00:00
getStatusHeaderDesc.php Tests: Correct the order of expected and actual values in get_status_header_desc() tests. 2022-02-19 12:36:04 +00:00
getWeekstartend.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isNewDay.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isPhpVersionCompatible.php Code Modernization: Replace phpversion() function calls with PHP_VERSION constant. 2022-05-20 17:36:23 +00:00
isSerialized.php Tests: Bring some consistency to serialization tests. 2022-08-13 12:09:41 +00:00
isSerializedString.php Tests: Bring some consistency to serialization tests. 2022-08-13 12:09:41 +00:00
isWpVersionCompatible.php Tests, Build Tools: Improve version compatibility tests. 2022-04-21 01:00:24 +00:00
listFiles.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
maybeSerialize.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:30:26 +00:00
numberFormatI18n.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
pluginBasename.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
referer.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
removeQueryArg.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
sizeFormat.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:13:47 +00:00
underscoreReturn.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wp.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpArrayGet.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpArraySet.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpArraySliceAssoc.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpAuthCheck.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpCheckAlternateFileNames.php Build/Test Tools: Add tests coverage for _wp_check_alternate_file_names(). 2022-10-08 09:16:35 +00:00
wpFilesize.php Tests: Add a public visibility to wp_filesize() tests. 2022-11-22 15:09:33 +00:00
wpFilterObjectList.php Coding Standards: Add missing visibility keywords for wp_filter_object_list() and wp_list_pluck() tests. 2021-08-26 16:50:02 +00:00
wpFuzzyNumberMatch.php Tests: Add unit tests for wp_fuzzy_number_match(). 2022-05-01 16:11:24 +00:00
wpGetArchives.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpGetMimeTypes.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
wpGuessUrl.php Tests: Rename the test for wp_guess_url() to match the function name. 2022-09-13 20:38:56 +00:00
wpIsNumericArray.php Tests: Remove the formatting group from wp_is_numeric_array() tests. 2021-11-08 17:07:49 +00:00
wpListFilter.php Tests: Move wp_list_filter() tests to their own file. 2021-08-26 16:20:57 +00:00
wpListPluck.php Coding Standards: Add missing visibility keywords for wp_filter_object_list() and wp_list_pluck() tests. 2021-08-26 16:50:02 +00:00
wpListSort.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:13:47 +00:00
wpListUtil.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:13:47 +00:00
wpNonceAys.php Tests: Add unit tests for the wp_nonce_ays() function. 2021-08-13 14:00:05 +00:00
wpNonceField.php Tests: Correct a flaky wp_nonce_field() test. 2022-12-19 14:43:02 +00:00
wpNonceUrl.php Build/Test tools: Add tests for wp_nonce_url(). 2022-10-07 02:49:24 +00:00
wpRefererField.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:13:47 +00:00
wpRemoteFopen.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
wpToKebabCase.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpValidateBoolean.php Coding Standards: Remove extra alignment level in the data provider for wp_validate_boolean() tests. 2022-05-01 16:22:58 +00:00
xmlrpc.php Tests: Add unit tests for some XML-RPC functions: 2022-05-02 00:11:35 +00:00