function MimeTypeMapTest::testGetMimeTypeForExtension
Tests get mime type for extension.
File
-
core/
tests/ Drupal/ Tests/ Core/ File/ MimeType/ MimeTypeMapTest.php, line 87
Class
- MimeTypeMapTest
- Tests the MIME type mapper to extension.
Namespace
Drupal\Tests\Core\File\MimeTypeCode
public function testGetMimeTypeForExtension() : void {
$this->assertSame('image/jpeg', $this->map
->getMimeTypeForExtension('jpe'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.