0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-22 16:02:36 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/includes/SugarTheme/SugarThemeTest.php
Dillon-Brown 26aab7535d Move test namespaces into autoload-dev
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-09-08 16:49:16 +01:00

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'));
}
}