(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| <?php | |
| /** | |
| * Adds indicators to plugin actions menu if plugin is symlinked and/or under | |
| * source control. | |
| * | |
| * Why do this? | |
| * Because until https://core.trac.wordpress.org/ticket/36710 is resolved, | |
| * it's too easy to accidentally update or delete a symlinked plugin | |
| * (which is likely also under source control 🤯). | |
| * |
| # `wordpress-develop` contributor command line scripts for macOS | |
| # Requires WP-CLI: https://wp-cli.org | |
| # use local project's PHPunit | |
| alias phpunit='vendor/bin/phpunit' | |
| # PHPunit aliases, e.g. `puf name_of_test` | |
| alias pu=phpunit | |
| alias puf='phpunit --testdox --filter' | |
| alias pug='phpunit --testdox --group' | |
| alias pul='phpunit --list-groups' |
| # Spin up a SQLite WP site, e.g.: `wp-sqlite wp-603 6.0.3` | |
| # If omitted, version defaults to latest, and pins rollback to that version | |
| # @TODO consider using https://developer.wordpress.org/cli/commands/cli/alias/ for locals? | |
| wp-sqlite() { | |
| local wp_name='' | |
| local wp_ver='latest' | |
| # check required arg for site name | |
| if [ -z "$1" ]; then | |
| echo Usage: wp-sqlite site-name \[wp-version\] |
(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| # confirm file counts | |
| # tested in chassis (virtualbox + vagrant) | |
| # adjust path if necessary: content/plugins/ | |
| for plugin in woocommerce jetpack akismet hello-dolly mailpoet wordpress-seo; do | |
| echo ${plugin}: | |
| echo -- root files: `find content/plugins/${plugin}/. -maxdepth 1 -not -type d | wc -l` | |
| echo -- root dirs: `ls 2>/dev/null -UAd1 content/plugins/${plugin}/*/ | wc -l` | |
| echo -- total files: `find content/plugins/${plugin}/. -type f | wc -l` | |
| done |
| <?php | |
| /** | |
| * Plugin Name: Test for Trac 57575 | |
| * Plugin URI: https://core.trac.wordpress.org/ticket/57575 | |
| * Description: This plugin modifies links to external URLs in `core/paragraph` blocks using the HTML Tag Processor. | |
| * Requires at least: 6.2 | |
| * Requires PHP: 5.6 | |
| * Version: 1.0.0 | |
| * Author: WordPress Core Contributors | |
| * |
| <?php | |
| /** | |
| * Trac 57575: WP_HTML_Tag_Processor Testing | |
| * https://core.trac.wordpress.org/ticket/57575 | |
| * | |
| * Also refer to unit test suite for additional examples: | |
| * https://github.com/WordPress/wordpress-develop/tree/5b4ad8fa5634177102ee5771a2b7edfd86927f8b/tests/phpunit/tests/html | |
| * | |
| * ******************************** WARNING *********************************** | |
| * * This plugin intentionally prevents the normal WordPress UI from loading. * |
| <?php | |
| /** | |
| * Plugin Name: Fake WordPress Update | |
| * Description: Filters the value of <code>site_transient_update_core</code> to allow a custom install package. | |
| * Author: WordPress Core Contributors | |
| * Author URI: https://make.wordpress.org/core | |
| * License: GPLv2 or later | |
| * Version: 1.0.0 | |
| * | |
| * Adapted from https://gist.githubusercontent.com/hellofromtonya/bb0aa2d4b2311c8b40fa5ae8ada4dc19 |
This script checks a list of WordPress.org contributors for whether they have the Test Contributor badge, and if not, if they've recently submitted a test report in Trac.
Copy these files into a folder. Create a contribs.txt file with a list of WPORG usernames or Slack IDs to check. One entry per line works best.
Here is an incomplete list of sources to check for new test contributions:
To validate these files, check out the Content Credentials Verify tool.
imagick and mu-plugin below)