Changeset 13417 for trunk/tests/phpunit/testcases/core/avatars.php
- Timestamp:
- 02/10/2023 04:01:49 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/testcases/core/avatars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/avatars.php
r13316 r13417 6 6 class BP_Tests_Avatars extends BP_UnitTestCase { 7 7 private $params = array(); 8 protected $allowed_image_types = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' );9 protected $allowed_image_mimes = array( 'image/jpeg', 'image/jpeg', 'image/jpeg', 'image/gif', 'image/png' );8 protected $allowed_image_types = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'webp' ); 9 protected $allowed_image_mimes = array( 'image/jpeg', 'image/jpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/webp' ); 10 10 11 11 public function set_up() { 12 12 parent::set_up(); 13 14 if ( bp_is_running_wp( '5.8.0', '>=' ) ) {15 $this->allowed_image_types[] = 'webp';16 $this->allowed_image_mimes[] = 'image/webp';17 }18 13 } 19 14
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)