batcache icon indicating copy to clipboard operation
batcache copied to clipboard

Introduce unit tests via the WordPress Core test framework

Open stevegrunwell opened this issue 8 years ago • 1 comments

It's not much, but it's a start: using WP-CLI's wp scaffold plugin-tests command, I've introduced unit tests to the project, starting with the batcache_post() function in batcache.php.

As with most tests, the goal will be to prevent regressions and make it easier to introduce new functionality without breaking the internet (as that's typically frowned upon).

stevegrunwell avatar Mar 22 '16 04:03 stevegrunwell

This is super nice. Would you mind revisiting and checking if they run with latest WP/PHP 7.x. I'd love to build on this work.

aidvu avatar Oct 28 '20 13:10 aidvu