Ship code with confidence
Learn how to write automated tests to write and fix code faster
Nothing is more reassuring when working on a codebase than knowing that if you accidentally break something, a test will alert you.
But it’s not all about your code.
Can you be sure that none of the plugins that you use break your code on an update?
Are you confident that you can update PHP versions without causing issues?
Do you feel comfortable rewriting old code, or do you avoid touching anything that “works”?
Whether you build websites for clients, or sell plugins–you don’t want to break people’s websites.
And automated tests are the number one tool to catch bugs before they hit production.
WP PHP Unit Testing Explained is a comprehensive video course that teaches you how write these tests.
What you’ll learn
At the end of this course, you’ll be able to write unit tests for plugins or entire projects.
You’ll also understand how these tests are integrated into the development process to flag issues before code is deployed to production.
To achieve this, we’ll focus on these six areas:
- Understanding automated testing in WordPress: Whether you have testing experience or not. You’ll understand the big picture behind how WordPress approaches testing.
- Test suite setup: To write and run tests, you need to set them up on your local environment. You’ll discover what tools there are, and how to use them.
- Testing Fundamentals: Discover the foundations of testing: writing the tests, running them, and interpreting the results.
- Handling test data: Learn how you can prepare the test environment with the content and data you need to efficiently test your code.
- Testing strategies: What are the strategies to use tests in the most efficient way?
- Project setup: The testing setup depends on whether you want to test an entire project, or just a plugin. It’s also different if you start fresh compared to adding to an existing codebase. This section will walk through the best approach for each of these cases.
Be part of the pre-relaunch
You might be thinking: What?
Let me explain.
I created a first version of a WordPress PHP unit testing course in 2016, and updated it regularly until 2022.
While this course is still up to date, the other courses I created gave me more experience in curriculum design, and lesson structure.
So I want to start from scratch, and make a course that’s more complete, and as useful as possible.
And for that I need your help.
As part of the prelaunch group, I’m looking for your feedback on what to add to the course. I also want to hear any comments you have about the lessons. I’ll redo them as often as I have to to make them the best possible version.
To achieve this, the lessons will be published in batches, with the first batch scheduled for 28 October 2024.
And to thank you for your help, I’ll give you a free code review. We’ll get on a call, and you’ll get direct feedback from me on the unit tests you’ve written on your projects.
Not sure what such a review looks like? Watch this video to get an idea.
Start learning today
✔ Complete Course: Get lifetime access to all lessons and exercises
✔ Source Code: Completed examples and exercises
✔ Unlimited Updates: Get access to all future course updates
✔ PLUS: A private call (1 hour) with your teacher Fränk Klein: 1 on 1, personalized code review of the tests in your WordPress project
Pre-relaunch pricing limited: 8 seats remaining
$199
$349
Who is behind this?

Hi, I’m Fränk Klein. I teach modern WordPress development.
In 2011 I decided to change careers and become a professional developer.
With no formal education in programming, I struggled. Where do I even start? What do I need to learn and when? And how can I find books and courses to teach me?
It was hard. Very hard. But my efforts paid off.
In 2013 I joined Automattic to work on the themes on WordPress.com. I also spent a year working for WordPress VIP, consulting clients running some of the biggest WordPress websites out there.
This led me to join Enterprise WordPress agency Human Made as a web engineer in 2016. I worked my way up to engineer, and have been a Principal engineer for the last five years.
I’m not telling you this to brag. But to show what is possible if you show up every day, and take consistent action.
Whether you are self-employed, work in an agency, or run your own company, continuous learning is the key to become successful. And stay successful.
But learning WordPress development shouldn’t be confusing. There should be a clear roadmap to follow, with the best education material available.
And that’s what this course is. I wish I had something like this when I got started in 2011.
At the end of the day, we don’t work for work’s sake. WordPress is a way to put food on the table. With only so many hours in the day, you don’t want to spend more time working than you have to.
And this is what I design my courses for. Deliver the maximum amount of career-boosting knowledge in the shortest amount of time.
WordPress has allowed me to make a living for me and my family while being time and location independent. And I want the same for you.