The slides of a talk given at WordCamp San Diego 2018:
https://2018.sandiego.wordcamp.org/session/introduction-to-unit-testing-wordpress-plugins/
This presentation is an introduction to how to unit test WordPress plugins. PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. The presentation covers: – Advantages that unit tests provide – Scaffolding a new plugin and its unit tests using WP-CLI – Writing and running the first unit test.