Changeset 27142 for trunk/tests/phpunit/tests/term/cache.php
- Timestamp:
- 02/09/2014 05:41:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/cache.php
r27104 r27142 35 35 function test_get_taxonomy_last_changed() { 36 36 $last_changed = get_taxonomy_last_changed( 'category' ); 37 $last_changed_cache = wp_cache_get( 'last_changed', 'category' ); 37 $key = 'category_last_changed'; 38 $last_changed_cache = wp_cache_get( $key, 'terms' ); 38 39 $this->assertEquals( $last_changed, $last_changed_cache ); 39 wp_cache_delete( 'last_changed', 'category' );40 wp_cache_delete( $key, 'terms' ); 40 41 $this->assertEquals( $last_changed, $last_changed_cache ); 41 42 $last_changed = get_taxonomy_last_changed( 'category' );
Note: See TracChangeset
for help on using the changeset viewer.