Changeset 8528 for trunk/tests/phpunit/testcases/activity/functions.php
- Timestamp:
- 06/15/2014 06:22:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/functions.php
r8526 r8528 786 786 } 787 787 788 /** 789 * @group bp_activity_delete_by_item_id 790 */ 791 public function test_bp_activity_delete_by_item_id() { 792 $args = array( 793 'user_id' => 5, 794 'component' => 'foo', 795 'type' => 'bar', 796 'item_id' => 12, 797 'secondary_item_id' => 44, 798 ); 799 800 $a = $this->factory->activity->create( $args ); 801 802 $this->assertTrue( bp_activity_delete_by_item_id( $args ) ); 803 804 $found = bp_activity_get_specific( array( 805 'activity_ids' => array( $a ), 806 ) ); 807 808 $this->assertSame( array(), $found['activities'] ); 809 } 810 788 811 public function check_activity_caches() { 789 812 foreach ( $this->acaches as $k => $v ) {
Note: See TracChangeset
for help on using the changeset viewer.