1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Closes #4514 Theme developers can now set the default style, just as they would with the default layout.

This commit is contained in:
Cameron
2022-04-06 08:37:13 -07:00
parent 8df5e187b3
commit 196f952db8
7 changed files with 65 additions and 52 deletions

View File

@@ -21,7 +21,7 @@
}
catch(Exception $e)
{
$this->assertTrue(false, "Couldn't load themeHandler object");
$this->fail("Couldn't load themeHandler object");
}
}
@@ -67,12 +67,24 @@
{
}
*/
public function testFindDefault()
{
$result = $this->th->findDefault('bootstrap3');
$this->assertSame('jumbotron_sidebar_right', $result);
}
public function testFindDefaultCSS()
{
$result = $this->th->findDefaultCSS('voux');
$this->assertSame('style.css', $result);
$result = $this->th->findDefaultCSS('bootstrap5');
$this->assertSame('https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.1.3/quartz/bootstrap.min.css', $result);
}
/*
public function testGetThemes()
{