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:
Sergey Biryukov 2019-09-26 01:33:44 +00:00
parent be8218efc7
commit f68fe85b41

View File

@ -173,8 +173,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase {
// Force last_changed to bump. // Force last_changed to bump.
wp_delete_term( $terms[0]->term_id, 'post_tag' ); wp_delete_term( $terms[0]->term_id, 'post_tag' );
$num_queries = $wpdb->num_queries; $num_queries = $wpdb->num_queries;
$this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) ); $time2 = wp_cache_get( 'last_changed', 'terms' );
$this->assertNotEquals( $time1, $time2 );
// last_changed and num_queries should bump after a term is deleted. // last_changed and num_queries should bump after a term is deleted.
$terms = get_terms( 'post_tag' ); $terms = get_terms( 'post_tag' );