Opened 8 years ago
Closed 8 years ago
#40283 closed defect (bug) (fixed)
Add missing global cache groups in tests
Reported by: | jeremyfelt | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Cache API | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
Several global cache groups are missing from WP_UnitTestCase::flush_cache()
, which can cause some fun cross-test confusion when running multisite tests with object cache enabled.
Previously, [1332/tests]
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
40283.diff adds useremail, userslugs, networks, sites, site-details groups to both
WP_UnitTestCase::flush_cache()
andTests_Cache::init_cache()
. It's less necessary in the cache tests, but doesn't hurt to be consistent.