WordPress.org

Make WordPress Core

Changeset 46317


Ignore:
Timestamp:
09/26/2019 01:33:44 AM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove inline assignment in test_wp_delete_term_should_invalidate_cache().

See #48142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getTerms.php

    r46314 r46317  
    174174        wp_delete_term( $terms[0]->term_id, 'post_tag' );
    175175
    176         $num_queries                           = $wpdb->num_queries;
    177         $this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) );
     176        $num_queries = $wpdb->num_queries;
     177        $time2       = wp_cache_get( 'last_changed', 'terms' );
     178        $this->assertNotEquals( $time1, $time2 );
    178179
    179180        // last_changed and num_queries should bump after a term is deleted.
Note: See TracChangeset for help on using the changeset viewer.