Example code for the WordCamp presentation about testing WordPress plugins.
Demonstrates using PHPUnit for testing the PHP code of a WordPress plugin.
It has sample unit and integration tests under the tests
folder.
Initial code is scaffolding using WP-CLI command:
wp scaffold plugin unit-tested-plugin-demo --plugin_name="Unit Tested Plugin Demo"
Note: This plugin is created for educational purposes only and it does not provide any useful functionality.