1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Code cleanup. Moved checkvalidtheme() out of class2.php and into e_theme as initTheme()

This commit is contained in:
Cameron
2020-12-21 17:46:32 -08:00
parent 92504acfdd
commit 812b7cbcb3
8 changed files with 303 additions and 294 deletions

View File

@@ -96,5 +96,25 @@
$this->assertTrue($res);
}
public function testThemeConstants()
{
$this->assertStringEndsWith('e107_themes/bootstrap3/', THEME);
$this->assertStringEndsWith('/e107_themes/bootstrap3/', THEME_ABS);
$this->assertNotNull(THEME_LEGACY);
$this->assertFalse(THEME_LEGACY);
$this->assertSame('style.css', THEME_STYLE);
$this->assertSame('jumbotron_sidebar_right', THEME_LAYOUT);
$e107 = e107::getInstance();
$this->assertSame('bootstrap3', $e107->site_theme);
// $this->assertStringEndsWith('/e107_themes/bootstrap3/', $e107->http_theme_dir);
}
}