Esempio n. 1
0
 /**
  * @param string $themeName
  * @return ThemeMock
  */
 private function createTheme($themeName)
 {
     $coreThemePlugin = new PluginMock($themeName);
     $coreThemePlugin->setIsTheme(true);
     $coreTheme = new ThemeMock($coreThemePlugin);
     $coreTheme->setStylesheet($this->getCoreThemeStylesheet());
     $coreTheme->setJsFiles(array(self::ASSET_MANAGER_TEST_DIR . 'scripts/SimpleComments.js'));
     return $coreTheme;
 }
Esempio n. 2
0
 public function testGetContentTypes()
 {
     $theme = new ThemeMock();
     $this->assertEquals([], $theme->getNavMenus(), "->getContentTypes() returns empty array");
 }