function MimeTypeMapTest::testHasMimeType

@covers ::hasMimeType

File

core/tests/Drupal/Tests/Core/File/MimeType/MimeTypeMapTest.php, line 79

Class

MimeTypeMapTest
Tests the MIME type mapper to extension.

Namespace

Drupal\Tests\Core\File\MimeType

Code

public function testHasMimeType() : void {
  $this->assertTrue($this->map
    ->hasMimeType('image/jpeg'));
  $this->assertFalse($this->map
    ->hasMimeType('foo/bar'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.