Testing

Introduction to PHP Unit Testing
PHPUnit Installation Guides
WP-PHPUnit Setup with WP-CLI
Setting up for WP Unit Tests with NPM & WP-ENV
Unit Tests
Basics of PHPUnit
Unit Tests for Plugins & Themes
Miscellaneous
Assignment – Testing
Other Types of Testing
3 Topics
JavaScript: QUnit, Jest
ESLint, JSLint, JSHint, JSCS
CSS: Stylelint
Unit Tests Quiz
rtlearn logo
Previous Lesson
Next Lesson

Miscellaneous

Testing Miscellaneous

Make sure you go through the WordPress.org’s official PHPUnit Test docs as well:
https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/

Few other PHP Unit Testing for WordPress frameworks:

WP_Mock

https://github.com/10up/wp_mock

Brain Monkey

https://packagist.org/packages/brain/monkey

Yoast/WP-Test-Utils

https://github.com/Yoast/wp-test-utils

Previous Lesson
Back to Course
Next Lesson