wp-cli / cache-command

Manages object and transient caches.
MIT License
15 stars 25 forks source link

Make transients deletion test more robust #74

Closed schlessera closed 1 year ago

schlessera commented 1 year ago

Starting with 6.1, WordPress Core adds a wp_global_styles_* transient right after installation.

This has broken the transient deletion test where it tried to deduce the number of transients deleted by transient delete --all.

This PR makes this test more flexible so that it can calculate the number of expected deletions.