December 14, 2018
PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. If you ever wanted to start adding automated tests to your code, but did not know how and where to start, this talk is for you.
This presentation covers:
– brief introduction to unit and integration testing
– scaffolding a test suite for an existing WordPress plugin using WP-CLI
– refactoring the existing code to make it testable
– writing and running the first tests