1
Writing Unit Tests
John Bintz edited this page 2023-07-22 21:09:50 +00:00
One thing the theme needs badly is unit tests of the code that currently lives within functions.php
. This will require breaking out the code into classes and exposing methods on those classes as template tags. I will set up a few example unit tests so that, if you're doing work on the theme, you'll be able to write your own tests for new code (or for existing code, which will be helpful, too!)