Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/20/2016 02:54:45 AM (9 years ago)
Author:
boonebgorges
Message:

Activity: After populate(), activity items with a bad ID should have id = 0.

Props jdgrimes.
Fixes #7394.

File:
1 edited

Legend:

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

    r10217 r11312  
    772772    }
    773773
     774    /**
     775     * @ticket BP7394
     776     */
     777    public function test_nonexistent_activity_should_have_id_0_after_population() {
     778        $a = $this->factory->activity->create();
     779        bp_activity_delete_by_activity_id( $a );
     780
     781        $a_obj = new BP_Activity_Activity( $a );
     782        $this->assertSame( 0, $a_obj->id );
     783    }
     784
    774785    public function action_cb( $activity ) {
    775786        return 'Woo Hoo!';
Note: See TracChangeset for help on using the changeset viewer.