WP PHP Unit Explained
Source code and exercises for the WP PHP Unit Testing Explained course
by wp-development-courses · github.com/wp-development-courses/wp-php-unit-testing-explained
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wp-development-courses/wp-php-unit-testing-explained/archive/refs/heads/main.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
wp-php-unit-testing-explained
Source code and exercises for the WP PHP Unit Testing Explained course
Running the tests
- V1: composer run test -- --testsuite=byline-v1
- V2: composer run test -- --testsuite=byline-v2
- V3a: composer run test -- --testsuite=byline-v3a
- V3b: composer run test -- --testsuite=byline-v3b
- V3c: composer run test -- --testsuite=byline-v3c
- V4a: composer run test -- --testsuite=byline-v4a
- V4b: composer run test -- --testsuite=byline-v4b
- V4c: composer run test -- --testsuite=byline-v4c
Exercises
- Exercise: Using Assertions: composer run test -- --testsuite=exercise-assertions-solution
- Exercise Solution: Using Assertions: composer run test -- --testsuite=exercise-assertions-solution
- Exercise: Database fixtures: composer run test -- --testsuite=exercise-database-fixtures
- Exercise Solution: Database fixtures: composer run test -- --testsuite=exercise-database-fixtures-solution
- Exercise: Shared database fixtures 1: composer run test -- --testsuite=exercise-shared-database-fixtures-1
- Exercise Solution: Database fixtures 1: composer run test -- --testsuite=exercise-shared-database-fixtures-1-solution
- Exercise: Shared database fixtures