Changeset 7903 for trunk/tests/testcases/groups/functions.php
- Timestamp:
- 02/17/2014 12:35:26 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/groups/functions.php
r7887 r7903 438 438 /** 439 439 * @group groupmeta 440 * @group groups_get_groupmeta 441 * @group cache 442 */ 443 public function test_groups_get_groupmeta_cache_all_on_get() { 444 $g = $this->factory->group->create(); 445 groups_add_groupmeta( $g, 'foo', 'bar' ); 446 groups_add_groupmeta( $g, 'foo1', 'baz' ); 447 $this->assertFalse( wp_cache_get( $g, 'group_meta' ) ); 448 449 // A single query should prime the whole meta cache 450 groups_get_groupmeta( $g, 'foo' ); 451 452 $c = wp_cache_get( $g, 'group_meta' ); 453 $this->assertNotEmpty( $c['foo1'] ); 454 } 455 456 /** 457 * @group groupmeta 440 458 */ 441 459 public function test_groups_delete_groupmeta_non_numeric_id() {
Note: See TracChangeset
for help on using the changeset viewer.