Skip to:
Content

BuddyPress.org

Changeset 8526


Ignore:
Timestamp:
06/15/2014 06:12:07 PM (11 years ago)
Author:
boonebgorges
Message:

Add unit test for bp_activity_get_activity_id()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/functions.php

    r8521 r8526  
    769769    }
    770770
     771    /**
     772     * @group bp_activity_get_activity_id
     773     */
     774    public function test_bp_activity_get_activity_id() {
     775        $args = array(
     776            'user_id' => 5,
     777            'component' => 'foo',
     778            'type' => 'bar',
     779            'item_id' => 12,
     780            'secondary_item_id' => 44,
     781        );
     782
     783        $a = $this->factory->activity->create( $args );
     784
     785        $this->assertEquals( $a, bp_activity_get_activity_id( $args ) );
     786    }
     787
    771788    public function check_activity_caches() {
    772789        foreach ( $this->acaches as $k => $v ) {
Note: See TracChangeset for help on using the changeset viewer.