Changeset 7956 for trunk/tests/testcases/groups/cache.php
- Timestamp:
- 02/21/2014 05:51:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/groups/cache.php
r7843 r7956 74 74 75 75 // Prime cache 76 groups_get_group( array( 'group_id' => $g ) );76 groups_get_group( array( 'group_id' => $g, ) ); 77 77 78 $this->assertNotEmpty( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );78 $this->assertNotEmpty( wp_cache_get( $g, 'bp_groups' ) ); 79 79 80 80 // Trigger flush 81 81 groups_update_groupmeta( $g, 'foo', 'bar' ); 82 82 83 $this->assertFalse( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );83 $this->assertFalse( wp_cache_get( $g, 'bp_groups' ) ); 84 84 } 85 85 … … 95 95 groups_get_group( array( 'group_id' => $g ) ); 96 96 97 $this->assertNotEmpty( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );97 $this->assertNotEmpty( wp_cache_get( $g, 'bp_groups' ) ); 98 98 99 99 // Trigger flush 100 100 groups_update_groupmeta( $g, 'foo', 'baz' ); 101 $this->assertFalse( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );101 $this->assertFalse( wp_cache_get( $g, 'bp_groups' ) ); 102 102 } 103 103
Note: See TracChangeset
for help on using the changeset viewer.