Skip to content
Permalink
Browse files

Coding Standards: Remove inline assignment in `test_wp_delete_term_sh…

…ould_invalidate_cache()`.

See #48142.

git-svn-id: https://develop.svn.wordpress.org/trunk@46317 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 26, 2019
1 parent be8218e commit f68fe85b417312188d35ef897df4338d128b350b
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/phpunit/tests/term/getTerms.php
@@ -173,8 +173,9 @@ public function test_wp_delete_term_should_invalidate_cache() {
// 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' );

0 comments on commit f68fe85

Please sign in to comment.
You can’t perform that action at this time.