1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Closes #4748 - Bootstrap5 Theme enhancements. Bootswatch 5.

This commit is contained in:
Cameron
2022-04-05 19:49:08 -07:00
parent 45372f285c
commit 6eff4cb5f7
15 changed files with 152 additions and 99 deletions

View File

@@ -23,7 +23,7 @@ class e_themeTest extends \Codeception\Test\Unit
}
catch(Exception $e)
{
$this->assertTrue(false, "Couldn't load e_theme object");
$this->fail("Couldn't load e_theme object");
}
$this->tm->clearCache();
@@ -31,12 +31,13 @@ class e_themeTest extends \Codeception\Test\Unit
}
/*
public function testCssAttribute()
{
}
public function testCssAttribute()
{
$result = e107::getTheme('bootstrap5')->cssAttribute('front','name');
$this->assertSame('style.css', $result);
}
/*
public function testUpgradeThemeCode()
{
@@ -484,11 +485,18 @@ class e_themeTest extends \Codeception\Test\Unit
{
}
*/
public function testGetThemeInfo()
{
$themeObj = $this->tm;
$data = $themeObj::getThemeInfo('bootstrap3');
$result= !empty($data['stylesheetThumbnails']['admin']);
$this->assertTrue($result);
public function testGetThemeInfo()
{
}*/
$data = $themeObj::getThemeInfo('bootstrap5');
$result= !empty($data['stylesheetThumbnails']['front']);
$this->assertTrue($result);
}
public function testGetThemeLayout()
{