function MimeTypeMapTest::testGetExtensionsForMimeType
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/File/MimeType/MimeTypeMapTest.php \Drupal\Tests\Core\File\MimeType\MimeTypeMapTest::testGetExtensionsForMimeType()
Tests get extensions for mime type.
File
-
core/
tests/ Drupal/ Tests/ Core/ File/ MimeType/ MimeTypeMapTest.php, line 94
Class
- MimeTypeMapTest
- Tests the MIME type mapper to extension.
Namespace
Drupal\Tests\Core\File\MimeTypeCode
public function testGetExtensionsForMimeType() : void {
$this->assertEquals([
'jpe',
'jpeg',
'jpg',
], $this->map
->getExtensionsForMimeType('image/jpeg'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.