function MimeTypeMapTest::testHasExtension
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/File/MimeType/MimeTypeMapTest.php \Drupal\Tests\Core\File\MimeType\MimeTypeMapTest::testHasExtension()
Tests has extension.
File
-
core/
tests/ Drupal/ Tests/ Core/ File/ MimeType/ MimeTypeMapTest.php, line 113
Class
- MimeTypeMapTest
- Tests the MIME type mapper to extension.
Namespace
Drupal\Tests\Core\File\MimeTypeCode
public function testHasExtension() : void {
$this->assertTrue($this->map
->hasExtension('jpg'));
$this->assertFalse($this->map
->hasExtension('foo'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.