public function StreamWrapperTest::testGetMimeType in AmazonS3 7.2
Test getting a mime type.
@covers \Drupal\amazons3\StreamWrapper::getMimeType
File
- tests/
StreamWrapperTest.php, line 235
Class
Namespace
Drupal\amazons3TestCode
public function testGetMimeType() {
$mimeType = StreamWrapper::getMimeType('s3://bucket.example.com/image.jpg');
$this
->assertEquals('image/jpeg', $mimeType);
}