wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov 5cb75a136d Tests: Mock the HTTP request response in download_url() tests.
This aims to speed up the tests and minimize unrelated failures by avoiding an unnecessary external HTTP request, while still performing the intended functionality checks.

Update similar helpers in some other tests to use more consistent terminology.

Follow-up to [37907], [46175], [51626].

See #54420, #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@52382 602fd350-edb4-49c9-b593-d223f7449a82
2021-12-15 19:59:32 +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 Tests: Add more invalid IP test cases and @covers to Tests_Functions_Anonymization. 2021-09-09 22:43:49 +00:00
canonicalCharset.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
cleanDirsizeCache.php Tests: Some test improvements for clean_dirsize_cache() tests: 2021-10-26 02:02:50 +00:00
cleanupHeaderComment.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
deprecated.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
doEnclose.php Tests: Mock the HTTP request response in download_url() tests. 2021-12-15 19:59:32 +00:00
getStatusHeaderDesc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +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
isSerializedString.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
listFiles.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +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 Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +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 Tests: Remove trailing commas in function calls in _wp_array_get() tests. 2021-05-24 13:46:39 +00:00
wpArraySet.php Tests: Correct description for the Tests_Functions_wpArraySet class. 2021-05-24 12:27:35 +00:00
wpArraySliceAssoc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpAuthCheck.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +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
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
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 Tests: Move wp_list_sort() tests to their own file. 2021-08-26 16:29:37 +00:00
wpListUtil.php Tests: Move wp_list_sort() tests to their own file. 2021-08-26 16:29:37 +00:00
wpNonceAys.php Tests: Add unit tests for the wp_nonce_ays() function. 2021-08-13 14:00:05 +00:00
wpRemoteFopen.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
wpToKebabCase.php Tests: Use assertSame() in _wp_to_kebab_case() tests. 2021-06-24 06:51:54 +00:00
wpValidateBoolean.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00