mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-21 20:56:08 +00:00
15 lines
506 B
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);
|
|
}
|
|
}
|