- Timestamp:
- 02/29/2020 03:38:06 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-attachment.php
r11737 r12555 239 239 240 240 /* No error */ 241 $user_avatar = $avatar_attachment->upload( $_FILES, ' xprofile_avatar_upload_dir' );241 $user_avatar = $avatar_attachment->upload( $_FILES, 'bp_members_avatar_upload_dir' ); 242 242 $this->assertEquals( $user_avatar['file'], $bp->avatar->upload_path . '/avatars/' . $u1 .'/mystery-man.jpg' ); 243 243 … … 245 245 add_filter( 'bp_core_avatar_original_max_filesize', array( $this, 'max_filesize' ) ); 246 246 247 $user_avatar = $avatar_attachment->upload( $_FILES, ' xprofile_avatar_upload_dir' );247 $user_avatar = $avatar_attachment->upload( $_FILES, 'bp_members_avatar_upload_dir' ); 248 248 249 249 remove_filter( 'bp_core_avatar_original_max_filesize', array( $this, 'max_filesize' ) ); … … 254 254 $_FILES[ $avatar_attachment->file_input ]['type'] = 'application/pdf'; 255 255 256 $user_avatar = $avatar_attachment->upload( $_FILES, ' xprofile_avatar_upload_dir' );256 $user_avatar = $avatar_attachment->upload( $_FILES, 'bp_members_avatar_upload_dir' ); 257 257 $this->assertFalse( empty( $user_avatar['error'] ) ); 258 258
Note: See TracChangeset
for help on using the changeset viewer.