Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 660 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 660 Bytes

Unit Tested WordPress Plugin Demo Build Status

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.