Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/07/2016 04:55:04 PM (10 years ago)
Author:
imath
Message:

Post Type Activities: add unit tests and improve existing ones.

See #6482
Fixes #6128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/blogs/filters.php

    r9837 r10545  
    1010    public function setUp() {
    1111        parent::setUp();
    12 
    13         $bp = buddypress();
    14 
    15         $this->activity_actions = $bp->activity->actions;
    16         $bp->activity->actions = new stdClass();
    1712
    1813        $this->custom_post_types = array( 'using_old_filter' );
     
    3631        remove_filter( 'bp_blogs_record_post_post_types',    array( $this, 'filter_post_types'), 10, 1 );
    3732        remove_filter( 'bp_blogs_record_comment_post_types', array( $this, 'filter_post_types'), 10, 1 );
    38 
    39         // Reset activity actions
    40         $bp->activity->actions = $this->activity_actions;
    41         $bp->activity->track = array();
    4233    }
    4334
     
    6556    /**
    6657     * @goup bp_blogs_record_comment
     58     * @group post_type_comment_activities
    6759     */
    6860    public function test_bp_blogs_record_comment() {
     
    9082    /**
    9183     * @goup bp_blogs_record_comment_sync_activity_comment
     84     * @group post_type_comment_activities
    9285     */
    9386    public function test_bp_blogs_record_comment_sync_activity_comment() {
Note: See TracChangeset for help on using the changeset viewer.