Autoplay
Autocomplete
Previous Lesson
Complete and Continue
WP PHP Unit Testing Explained
Welcome
Hello, and welcome to the course! (1:17)
Introduction
Introduction to testing (3:33)
Introduction to automated testing (3:46)
Unit testing The WordPress Way (2:35)
Unit testing concepts (3:04)
Local Development Set Up
Unit testing tools explained (0:54)
WordPress install set up (2:42)
Installing LocalWP
Creating a WordPress install using LocalWP (1:28)
Overview of key LocalWP dev helpers (1:32)
Interacting with the WordPress install on LocalWP (2:54)
WordPress Unit testing framework set up (2:32)
Installing Composer
Discovering the course plugin (1:48)
Setting up the course plugin (3:59)
Getting started with testing
What you'll learn (0:33)
[IMPORTANT] Update the course plugin
Conventions for the test files (2:19)
Conventions for the test code (1:57)
Foundations for our first unit test (5:02)
Completing our first unit test with an assertion (3:45)
Understanding Test Runner messages (4:20)
[Exercise] Using Assertions (0:52)
Preventing and fixing bugs with tests
How to use tests to fix bugs (4:23)
How to use strict typing to prevent bugs (5:20)
Set Up and Tear Down Explained
What you'll learn (0:33)
Understanding set up and tear down (3:13)
Understanding static and non-static methods and properties in PHP (4:29)
Set up and tear down methods in PHPUnit (4:05)
Set up and tear down methods in the WP Unit Testing framework (6:45)
Automated fixture tear down in the WP Unit Testing framework (6:27)
Creating database fixtures
What you'll learn in this section (1:35)
How to create database fixtures with code? (1:57)
Creating a user fixture with code (4:21)
Introduction to the Data Fixture Factories (3:17)
Creating a user fixture with the Unit Test Factory (2:36)
What are dependent fixtures? (1:13)
Creating dependent fixtures (2:18)
[Exercise] Creating database fixtures (0:47)
What are shared database fixtures? (4:02)
Creating shared database fixtures (5:05)
[Exercise] Creating shared database fixtures (1:14)
Using In-Memory Fixtures
Introduction to In-Memory Fixtures (3:17)
Creating PHP Superglobal Fixtures (3:16)
Exercise: Creating PHP Superglobal Fixtures (1:29)
Creating Global Variable Fixtures (4:40)
Creating Page Specific Fixtures (7:02)
Exercise: Creating Page Specific Fixtures (1:04)
Testing Setup and Configuration
Introduction to WP PHPUnit (2:37)
Sample Project Overview (3:05)
PHPUnit Configuration (4:44)
Test Install Configuration (3:41)
Test Bootstrap Configuration (4:46)
Conclusion
Congratulations for finishing the course! (0:45)
Teach online with
How to create database fixtures with code?
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock