You are here

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

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testGetMimeType() {
  $mimeType = StreamWrapper::getMimeType('s3://bucket.example.com/image.jpg');
  $this
    ->assertEquals('image/jpeg', $mimeType);
}