Skip to content

Commit

Permalink
Update mime extension check (#37332)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored May 10, 2021
1 parent ab09fd5 commit 6e5a103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Http/HttpMimeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public function testMimeTypeSymfonyInstance()

public function testSearchExtensionFromMimeType()
{
$this->assertSame('qt', MimeType::search('video/quicktime'));
// Regression: check for both "qt" & "mov" because of a behavioral change in Symfony 5.3
// See: https://github.com/symfony/symfony/pull/41016
$this->assertContains(MimeType::search('video/quicktime'), ['qt', 'mov']);
$this->assertNull(MimeType::search('foo/bar'));
}
}

0 comments on commit 6e5a103

Please sign in to comment.