From f466d0331326f89158bfc47ff80d8095ade5dd0c Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 10 May 2021 14:39:44 +0200 Subject: [PATCH] Update mime extension check --- tests/Http/HttpMimeTypeTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Http/HttpMimeTypeTest.php b/tests/Http/HttpMimeTypeTest.php index 1b94c2210e30..097db8abef80 100755 --- a/tests/Http/HttpMimeTypeTest.php +++ b/tests/Http/HttpMimeTypeTest.php @@ -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')); } }