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:

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

Published

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:

Event

WordCamp Los Angeles 2018 28

Speakers

Behzod Saidov 3

Tags

PHPUnit 1
testing 48

Language

English 7584

Download
MP4: Low, Med, High
OGG: Low
Subtitles
Subtitle this video →
Producer
%d bloggers like this: