Start your local development environment of choice and run the bin/install-wp-tests.sh
script to set up the
database and install a copy of WordPress in your computer's /tmp
directory.
bash bin/install-wp-tests.sh <db-name> <db-user> <db-pass> [db-host] [wp-version] [skip-database-creation]
bash bin/install-wp-tests.sh s3_media_sync_test root root localhost latest
bash bin/install-wp-tests.sh s3_media_sync_test root root localhost:"<path_to_sock>" latest
bash bin/install-wp-tests.sh s3_media_sync_test root "" 127.0.0.1:"<port>" latest
Try deleting your tmp /wordpress/
and /wordpress-tests-lib/
folders if you're seeing missing file errors related to
these directories.
To run all tests:
composer test
This plugin follows the WordPress coding standards. To check your code for standards compliance, run:
composer phpcs
To automatically fix many common coding standards issues:
composer phpcbf