How to start testing an existing WordPress plugin with PHPUnit

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

Speaker

Categories

WordCamp Los Angeles 2018 is over. Check out the next edition!