set_theme() static public method

static public set_theme ( WPLib_Theme_Base $theme )
$theme WPLib_Theme_Base
示例#1
0
文件: theme.php 项目: r-a-stone/wplib
 /**
  * Theme method for setting a theme instance for unit test mocking.
  *
  * @param $theme
  *
  * @return mixed
  */
 static function set_mock_theme($theme)
 {
     WPLib::set_theme($theme);
 }