Skip to content

Commit

Permalink
Merge pull request #494 from humanmade/psalm-wordpress-version-pin
Browse files Browse the repository at this point in the history
Switch to fixed version of Psalm Plugin WordPress
  • Loading branch information
joehoyle authored Feb 19, 2021
2 parents d58519b + aa27da7 commit 129f84f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"require-dev": {
"phpunit/phpunit": "7.5",
"pcov/clobber": "^2.0",
"humanmade/psalm-plugin-wordpress": "dev-master"
"humanmade/psalm-plugin-wordpress": "^1.0"
},
"scripts": {
"test": "./tests/run-tests.sh",
Expand Down
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 129f84f

Please sign in to comment.