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:
@@ -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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user