[wp-trac] [WordPress Trac] #31491: Enhance unit tests for persistent object caching

WordPress Trac noreply at wordpress.org
Sat Aug 22 10:12:22 UTC 2015


#31491: Enhance unit tests for persistent object caching
------------------------------+-----------------------
 Reporter:  ocean90           |       Owner:  ocean90
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  4.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+-----------------------

Comment (by ocean90):

 {{{
 5)
 Tests_Option_UpdateOption::test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_no
 Failed asserting that 42579 matches expected 42580.

 /srv/www/wp-develop/svn/tests/phpunit/tests/option/updateOption.php:88

 6)
 Tests_Option_UpdateOption::test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_false
 Failed asserting that 42586 matches expected 42587.

 /srv/www/wp-develop/svn/tests/phpunit/tests/option/updateOption.php:113
 }}}

 These are because the cache doesn't get flushed correctly.
 [attachment:31491.cache-flush.patch] uses `WP_UnitTestCase::flush()` to
 fix this.
 But this seems to be a bug in the memcache drop-in because it should clear
 the `$cache` property by itself, see [attachment:31491-memcached.patch].
 @ryan, can you take a look at this and maybe commit?


 ----

 @Otto42 or @nacin: Can you please commit [attachment:31491.wordpress-
 importer.patch] to wordpress-importer/trunk?

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


More information about the wp-trac mailing list