コード例 #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;
 }
コード例 #2
0
ファイル: PluginTest.php プロジェクト: josiah/sypress
 public function testGetContentTypes()
 {
     $plugin = new PluginMock();
     $this->assertEquals([], $plugin->getContentTypes(), "->getContentTypes() returns empty array");
 }