[wp-trac] [WordPress Trac] #31463: Avoid reaching inside the object cache object in tests
WordPress Trac
noreply at wordpress.org
Thu Feb 26 04:28:57 UTC 2015
#31463: Avoid reaching inside the object cache object in tests
------------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
It'd be really fantastically great if `WP_UnitTestCase::flush_cache` could
keep its hands off my internal properties. :)
Right now, `flush_cache` reaches into `$wp_object_cache` and messes with a
bunch of internal properties:
{{{
$wp_object_cache->group_ops = array();
$wp_object_cache->stats = array();
$wp_object_cache->memcache_debug = array();
$wp_object_cache->cache = array();
}}}
If we could just not do that, that'd be greaaaat.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31463>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list