Changeset 10260 for trunk/tests/phpunit/testcases/core/avatars.php
- Timestamp:
- 10/12/2015 11:13:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/avatars.php
r9831 r10260 256 256 $mimes = bp_core_get_allowed_avatar_mimes(); 257 257 258 $this->assertEqual s( array( 'jpeg', 'gif', 'png', 'jpg' ), array_keys( $mimes ) );259 $this->assertEqual s( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( $mimes ) );258 $this->assertEqualSets( array( 'jpeg', 'gif', 'png', 'jpg' ), array_keys( $mimes ) ); 259 $this->assertEqualSets( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( $mimes ) ); 260 260 261 261 add_filter( 'bp_core_get_allowed_avatar_types', array( $this, 'avatar_types_filter_add_type' ) ); 262 262 263 $this->assertEqual s( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( bp_core_get_allowed_avatar_mimes() ) );263 $this->assertEqualSets( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( bp_core_get_allowed_avatar_mimes() ) ); 264 264 265 265 remove_filter( 'bp_core_get_allowed_avatar_types', array( $this, 'avatar_types_filter_add_type' ) ); … … 267 267 add_filter( 'bp_core_get_allowed_avatar_types', array( $this, 'avatar_types_filter_remove_type' ) ); 268 268 269 $this->assertEqual s( array( 'image/gif', 'image/png' ), array_values( bp_core_get_allowed_avatar_mimes() ) );269 $this->assertEqualSets( array( 'image/gif', 'image/png' ), array_values( bp_core_get_allowed_avatar_mimes() ) ); 270 270 271 271 remove_filter( 'bp_core_get_allowed_avatar_types', array( $this, 'avatar_types_filter_remove_type' ) ); … … 273 273 add_filter( 'bp_core_get_allowed_avatar_types', '__return_empty_array' ); 274 274 275 $this->assertEqual s( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( bp_core_get_allowed_avatar_mimes() ) );275 $this->assertEqualSets( array( 'image/jpeg', 'image/gif', 'image/png', 'image/jpeg' ), array_values( bp_core_get_allowed_avatar_mimes() ) ); 276 276 277 277 remove_filter( 'bp_core_get_allowed_avatar_types', '__return_empty_array' );
Note: See TracChangeset
for help on using the changeset viewer.