Skip to:
Content

BuddyPress.org

Changeset 7955


Ignore:
Timestamp:
02/21/2014 05:51:07 PM (10 years ago)
Author:
boonebgorges
Message:

Remove redundant activity tests (copypasta from groups)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/activity/cache.php

    r7854 r7955  
    5454        $this->assertEquals( $expected, $found );
    5555    }
    56 
    57     /**
    58      * @group groups_update_groupmeta
    59      * @group groups_delete_group_cache_on_metadata_change
    60      */
    61     public function test_bp_groups_delete_group_cache_on_metadata_add() {
    62         $g = $this->factory->group->create();
    63 
    64         // Prime cache
    65         groups_get_group( array( 'group_id' => $g ) );
    66 
    67         $this->assertNotEmpty( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );
    68 
    69         // Trigger flush
    70         groups_update_groupmeta( $g, 'foo', 'bar' );
    71 
    72         $this->assertFalse( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );
    73     }
    74 
    75     /**
    76      * @group groups_update_groupmeta
    77      * @group groups_delete_group_cache_on_metadata_change
    78      */
    79     public function test_bp_groups_delete_group_cache_on_metadata_change() {
    80         $g = $this->factory->group->create();
    81 
    82         // Prime cache
    83         groups_update_groupmeta( $g, 'foo', 'bar' );
    84         groups_get_group( array( 'group_id' => $g ) );
    85 
    86         $this->assertNotEmpty( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );
    87 
    88         // Trigger flush
    89         groups_update_groupmeta( $g, 'foo', 'baz' );
    90         $this->assertFalse( wp_cache_get( 'bp_groups_group_' . $g . '_noload_users', 'bp' ) );
    91     }
    92 
    9356}
Note: See TracChangeset for help on using the changeset viewer.