[wp-trac] [WordPress Trac] #28759: Cache API unit tests should verify public function, not WP_Object_Cache methods

WordPress Trac noreply at wordpress.org
Mon Jan 26 08:00:34 UTC 2015


#28759: Cache API unit tests should verify public function, not WP_Object_Cache
methods
------------------------------+-----------------------------
 Reporter:  tollmanz          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Cache API         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-unit-tests  |     Focuses:
------------------------------+-----------------------------
Changes (by jipmoors):

 * keywords:  needs-patch => needs-unit-tests


Comment:

 I took this improvement into consideration in the arguments used to sketch
 a new way to implement the public functions via filters in [ticket:22661].


 Having these tests would make a lot more sense if the public functions are
 always used to handle cache requests instead of having external sources
 implement these themselves, which does not guarantee passing the tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28759#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list