function MimeTypeMapTest::testRemoveMimeType

@covers ::removeMimeType

File

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

Class

MimeTypeMapTest
Tests the MIME type mapper to extension.

Namespace

Drupal\Tests\Core\File\MimeType

Code

public function testRemoveMimeType() : void {
  $this->assertTrue($this->map
    ->removeMimeType('image/jpeg'));
  $this->assertNull($this->map
    ->getMimeTypeForExtension('jpg'));
  $this->assertFalse($this->map
    ->removeMimeType('foo/bar'));
}

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