wordpress-develop/tests/phpunit/tests
Timothy Jacobs c283bf2bb6 REST API: Ensure a sidebar's widgets property is a list.
When a widget is removed from a sidebar, if it was removed from the middle of the list, the widgets property would become an object with numeric keys.

The sidebars controller now forces the widgets property to be a list.

Props walbo.
Fixes #53612.


git-svn-id: https://develop.svn.wordpress.org/trunk@51377 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-07 19:34:33 +00:00
..
actions
admin Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
ajax Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
attachment
blocks Themes: Remove mention of “FSE” in Core. 2021-07-07 15:48:13 +00:00
bookmark Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
canonical
category
comment Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
customize Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
date Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
db
dependencies Build/Test Tools: Add the regenerator-runtime script as a dependency to wp-polyfill. 2021-06-23 00:04:47 +00:00
editor
error-protection
external-http
feed Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
filesystem
formatting Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
functions Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
general Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
hooks
http Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
image Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
import Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
includes Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
l10n Tests: Use assertInstanceOf() instead of assertTrue() in some tests. 2021-05-18 21:04:31 +00:00
link Permalinks: Revert the changes stemming from pagination limits. 2021-06-08 23:31:46 +00:00
load Multisite: Log error/warnings/notices from ms-files.php. 2021-07-06 20:20:51 +00:00
media Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
menu
meta
multisite Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
oembed Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
option Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
pomo Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
post Coding Standards: Fix WPCS issues in [51367]. 2021-07-07 10:50:43 +00:00
privacy Privacy: Improve naming of user confimed action email filters. 2021-06-09 01:34:09 +00:00
query Coding Standards: Fix WPCS issues in [51367]. 2021-07-07 10:50:43 +00:00
rest-api REST API: Ensure a sidebar's widgets property is a list. 2021-07-07 19:34:33 +00:00
rewrite Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
sitemaps
taxonomy Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
term Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
theme Tests: Add missed file update in [51370]. 2021-07-07 15:54:40 +00:00
url
user Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
widgets Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
xmlrpc Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
actions.php
adminbar.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
auth.php
avatar.php
basic.php
block-template-utils.php Tests: Use assertSame() in some newly introduced tests. 2021-06-07 11:16:29 +00:00
block-template.php Tests: Use assertSame() in some newly introduced tests. 2021-06-07 11:16:29 +00:00
cache.php Docs: Spell "non-existent" in a consistent way. 2021-03-27 13:32:55 +00:00
canonical.php
category.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
comment-submission.php
comment.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
compat.php
cron.php Docs: Spell "non-existent" in a consistent way. 2021-03-27 13:32:55 +00:00
db.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
dbdelta.php
dependencies.php
file.php Themes: Make sure get_file_data() recognizes headers prefixed by <?php tag. 2021-06-18 14:02:44 +00:00
filters.php
functions.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
https-detection.php
https-migration.php
kses.php Formatting: Add 'main' tag to kses 2021-05-25 01:42:20 +00:00
l10n.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
link.php
locale.php
mail.php Docs: Spell "non-existent" in a consistent way. 2021-03-27 13:32:55 +00:00
media.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
meta.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
multisite.php
pluggable.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:36:49 +00:00
post.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
query.php
rest-api.php
rewrite.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
robots.php
shortcode.php
site-health.php
taxonomy.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
template.php
term.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
theme.php Tests: Use more appropriate assertions in various tests. 2021-07-06 12:25:53 +00:00
upload.php
url.php
user.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
walker.php Code Modernization: Use a consistent check for parent items in WP_Walker. 2021-06-22 19:07:26 +00:00
widgets.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
wp.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00