(Note that some commands refer to shell functions from wordpress.zsh and wordpress-sqlite.zsh.)
## Testing Instructions for Trac 54504
# PREPARE PR SOURCE
# get pr
gh pr checkout 3732
# [optional] patch with logger
wp-patch ~/Downloads/trac-54504/54504-test-pr-3732.diff
# [optional] list wp-includes changed files
gh pr view 3732 --json files --jq '.files.[].path' | grep 'src/wp-includes/' > 3732.txt
# PREPARE CUSTOM PACKAGE ZIP
# download https://wordpress.org/latest.zip, expand
curl -O https://wordpress.org/latest.zip
unzip latest.zip
# clear wp-includes
rm -r wordpress/wp-includes/*
# copy pr files for entire wp-includes dir
cp -R ~/Sites/wordpress-develop/src/wp-includes/* wordpress/wp-includes/.
# confirm file counts: 17, 7, 64
find wordpress/wp-includes/Requests/src/. -maxdepth 1 -not -type d | wc -l
ls 2>/dev/null -UAd1 wordpress/wp-includes/Requests/src/*/ | wc -l
find wordpress/wp-includes/Requests/src/. -type f | wc -l
# [optional] copy logger patch
cp ~/Sites/wordpress-develop/src/wp-admin/includes/update-core.php wordpress/wp-admin/includes/update-core.php
# zip package to wordpress-with-requests-2.zip
zip -r wordpress-with-requests-2.zip wordpress
# PREPARE TEST SITE
# create test site
wp-sqlite wp-54504
# enable debugging
wp-debug
# get custom wp package
cp ~/Downloads/trac-54504/wordpress-with-requests-2.zip .
# install fake-wordpress-update plugin from source (domain github => githubusercontent)
curl https://gist.githubusercontent.com/hellofromtonya/bb0aa2d4b2311c8b40fa5ae8ada4dc19/raw/2d62a5789ca91fd077ba34751983adbac05ec133/fake-wordpress-update.php -o wp-content/plugins/fake-wordpress-update.php
# confirm it's there
ls -l wp-content/plugins
# activate it
wp plugin activate fake-wordpress-update
# update wordpress, manually, wp-cli, etc
wp core update
# [optional] enable to test auto update (defaults to false for wp-sqlite)
wp config set WP_AUTO_UPDATE_CORE true --raw
# confirm version
wp core version
# check updated Requests dir, and count of dirs/files: 17, 7, 64
find wp-includes/Requests/src/. -maxdepth 1 -not -type d | wc -l
ls 2>/dev/null -UAd1 wp-includes/Requests/src/*/ | wc -l
find wp-includes/Requests/src/. -type f | wc -l