Changeset 12851 for trunk/tests/phpunit/testcases/xprofile/activity.php
- Timestamp:
- 02/21/2021 08:10:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/activity.php
r12599 r12851 297 297 /** 298 298 * @group activity_action 299 * @group bp_xprofile_format_activity_action_new_avatar300 */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_action318 299 * @group bp_xprofile_format_activity_action_updated_profile 319 300 */
Note: See TracChangeset
for help on using the changeset viewer.