mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-12-23 04:48:03 +00:00
26aab7535d
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
16 lines
508 B
PHP
16 lines
508 B
PHP
<?php
|
|
|
|
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
|
|
|
|
class SugarThemeTest extends SuitePHPUnitFrameworkTestCase
|
|
{
|
|
public function testGetMimeType(): void
|
|
{
|
|
$theme = SugarThemeRegistry::current();
|
|
self::assertEquals('image/svg+xml', $theme->getMimeType('svg'));
|
|
self::assertEquals('image/gif', $theme->getMimeType('gif'));
|
|
self::assertEquals('image/png', $theme->getMimeType('png'));
|
|
self::assertEquals(null, $theme->getMimeType('notanextension'));
|
|
}
|
|
}
|