Skip to content

Commit

Permalink
Fix trunk unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jun 24, 2024
1 parent 0be152e commit 170b939
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/phpunit/integration/tests/Media/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ public function test_get_allowed_mime_types_multisite(): void {
$expected['image'][] = 'image/avif';
}

// See https://core.trac.wordpress.org/ticket/53167.
if ( version_compare( get_bloginfo( 'version' ), '6.5', '>' ) ) {
$expected['audio'] = [
'audio/mpeg',
'audio/aac',
'audio/wav',
'audio/ogg',
];
}

$actual = $this->instance->get_allowed_mime_types();

$this->assertEqualSets( $expected, $actual );
Expand Down

0 comments on commit 170b939

Please sign in to comment.