Behzod Saidov: How to Start Testing an Existing WordPress Plugin with PHPUnit

Continue the discussion

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


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

Rate this:


WordCamp Los Angeles 2018 28


Behzod Saidov 4


PHPUnit 1
testing 58


English 9819

MP4: Low, Med, High, Original
OGG: Low
Subtitle this video →
%d bloggers like this: