Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2021 08:10:55 PM (3 years ago)
Author:
imath
Message:

The new_avatar activity belongs to the Members component

The activity generated when members add/update their profile photo wasn't migrated to the Members component during the 6.0.0 milestone. This commit's goal is to repare this oversight.

See #8156
See #8407
Fixes #8408

File:
1 edited

Legend:

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

    r12599 r12851  
    297297    /**
    298298     * @group activity_action
    299      * @group bp_xprofile_format_activity_action_new_avatar
    300      */
    301     public function test_bp_xprofile_format_activity_action_new_avatar() {
    302         $u = self::factory()->user->create();
    303         $a = self::factory()->activity->create( array(
    304             'component' => 'profile',
    305             'type' => 'new_avatar',
    306             'user_id' => $u,
    307         ) );
    308 
    309         $expected = sprintf( __( '%s changed their profile picture', 'buddypress' ), bp_core_get_userlink( $u ) );
    310 
    311         $a_obj = new BP_Activity_Activity( $a );
    312 
    313         $this->assertSame( $expected, $a_obj->action );
    314     }
    315 
    316     /**
    317      * @group activity_action
    318299     * @group bp_xprofile_format_activity_action_updated_profile
    319300     */
Note: See TracChangeset for help on using the changeset viewer.