From f68fe85b417312188d35ef897df4338d128b350b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Sep 2019 01:33:44 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/term/getTerms.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/term/getTerms.php b/tests/phpunit/tests/term/getTerms.php index b40f0d64a3..6b8145e845 100644 --- a/tests/phpunit/tests/term/getTerms.php +++ b/tests/phpunit/tests/term/getTerms.php @@ -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' );