You are here

public function StreamWrapperTest::testGetMimeTypeDefault in AmazonS3 7.2

Test getting the default mime type.

@covers \Drupal\amazons3\StreamWrapper::getMimeType

File

tests/StreamWrapperTest.php, line 245

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testGetMimeTypeDefault() {
  $mimeType = StreamWrapper::getMimeType('s3://bucket.example.com/image');
  $this
    ->assertEquals('application/octet-stream', $mimeType);
}