File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
tests/webfiori/framework/test/theme Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ public function testToJson00() {
6060 public function testUseTheme00 () {
6161 $ themeName = 'New Theme 2 ' ;
6262 ThemeManager::resetRegistered ();
63+ ThemeManager::register (new \themes \fioriTheme2 \NewTestTheme2 ());
6364 //$this->assertFalse(Theme::isThemeLoaded($themeName));
6465 $ theme = ThemeManager::usingTheme ($ themeName );
6566 $ this ->assertTrue ($ theme instanceof Theme);
@@ -84,6 +85,7 @@ public function testUseTheme01() {
8485 App::getConfig ()->setTheme ('' );
8586 $ theme = ThemeManager::usingTheme ();
8687 $ this ->assertNull ($ theme );
88+ ThemeManager::register (new NewFTestTheme ());
8789 $ theme = ThemeManager::usingTheme (NewFTestTheme::class);
8890 $ this ->assertTrue ($ theme instanceof Theme);
8991 $ this ->assertEquals ('New Super Theme ' , $ theme ->getName ());
You can’t perform that action at this time.
0 commit comments