mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Unit Tests: better fixtures for Tests_AdminBar. Don't force-delete some posts: some filter callbacks are no-ops on Multisite if the post is vanquished.
See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35246 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -78,7 +78,7 @@ class Tests_Post_getPages extends WP_UnitTestCase {
|
||||
$last_changed = wp_cache_get( 'last_changed', 'posts' );
|
||||
|
||||
// This should bump last_changed.
|
||||
wp_delete_post( $pages[0]->ID, true );
|
||||
wp_delete_post( $pages[0]->ID );
|
||||
$old_changed_float = $this->_microtime_to_float( $last_changed );
|
||||
$new_changed_float = $this->_microtime_to_float( wp_cache_get( 'last_changed', 'posts' ) );
|
||||
$this->assertGreaterThan( $old_changed_float, $new_changed_float );
|
||||
|
||||
Reference in New Issue
Block a user