Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Feb 19, 2021
1 parent 2bd9aea commit aa27da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-s3-uploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public function test_generate_attachment_metadata_for_mp4() {
) );

$meta_data = wp_generate_attachment_metadata( $attachment_id, $test_file );
$this->assertEquals( 'video/mp4', $meta_data['mime_type'] );
$this->assertEquals( 'quicktime', $meta_data['dataformat'] );
// Video mimetype can vary depending on platform configuration
$this->assertTrue( in_array( $meta_data['mime_type'], [ 'video/quicktime', 'video/mp4' ], true ) );
$this->assertEquals( 320, $meta_data['width'] );
$this->assertEquals( 240, $meta_data['height'] );
}
Expand Down

0 comments on commit aa27da7

Please sign in to comment.