Coding Standards: Remove inline assignment in test_wp_delete_term_should_invalidate_cache()
.
See #48142. git-svn-id: https://develop.svn.wordpress.org/trunk@46317 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
be8218efc7
commit
f68fe85b41
@ -173,8 +173,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase {
|
||||
// Force last_changed to bump.
|
||||
wp_delete_term( $terms[0]->term_id, 'post_tag' );
|
||||
|
||||
$num_queries = $wpdb->num_queries;
|
||||
$this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) );
|
||||
$num_queries = $wpdb->num_queries;
|
||||
$time2 = wp_cache_get( 'last_changed', 'terms' );
|
||||
$this->assertNotEquals( $time1, $time2 );
|
||||
|
||||
// last_changed and num_queries should bump after a term is deleted.
|
||||
$terms = get_terms( 'post_tag' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user