0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-21 20:56:08 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/include/SugarTheme/SugarThemeTest.php

15 lines
506 B
PHP

<?php
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
class SugarThemeTest extends SuitePHPUnitFrameworkTestCase
{
public function testGetMimeType()
{
$theme = SugarThemeRegistry::current();
$this->assertEquals($theme->getMimeType('svg'), 'image/svg+xml');
$this->assertEquals($theme->getMimeType('gif'), 'image/gif');
$this->assertEquals($theme->getMimeType('png'), 'image/png');
$this->assertEquals($theme->getMimeType('notanextension'), null);
}
}