[wp-trac] [WordPress Trac] #31491: Enhance unit tests for persistent object caching
WordPress Trac
noreply at wordpress.org
Fri Aug 21 21:11:10 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):
{{{
1) Tests_Import_Import::test_small_import
Failed asserting that 0 matches expected 6.
/srv/www/wp-develop/svn/tests/phpunit/tests/import/import.php:175
}}}
The importer uses a query to update `post_parent` and not
`wp_update_post()` which clears the cache. [attachment:31491.wordpress-
importer.patch] fixes that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31491#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list