本文整理汇总了PHP中WP_UnitTestCase::setup方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_UnitTestCase::setup方法的具体用法?PHP WP_UnitTestCase::setup怎么用?PHP WP_UnitTestCase::setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WP_UnitTestCase
的用法示例。
在下文中一共展示了WP_UnitTestCase::setup方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
/**
* Init
*
* @return [type] [description]
*/
function setup()
{
parent::setup();
global $blimply;
$this->blimply = $blimply;
$this->blimply->action_admin_init();
$this->set_options();
}
示例2: setup
public function setup()
{
parent::setup();
$this->prophet = new \Prophecy\Prophet();
$this->settings = new Settings();
$this->settings->set('api_key', 'foo');
$this->settings->set('api_secret', 'bar');
$this->settings->set('api_channel', 'baz');
}
示例3: setup
public function setup()
{
parent::setup();
$this->prophet = new \Prophecy\Prophet();
$this->settings = new Settings();
$this->settings->set('api_key', 'foo');
$this->settings->set('api_secret', 'bar');
$this->settings->set('api_channel', 'baz');
$this->original_user_id = get_current_user_id();
}
示例4: setUp
public function setUp()
{
parent::setup();
$this->controller = new SessionsController();
}
示例5: setup
public function setup()
{
parent::setup();
$this->settings = new Settings();
}
示例6: setUp
public function setUp()
{
// Override the normal server with our spying server.
$GLOBALS['wp_rest_server'] = new Spy_REST_Server();
parent::setup();
}
示例7: setUp
public function setUp()
{
parent::setup();
$this->containerTitle = 'Page Settings';
$this->page = get_post($this->factory->post->create(array('post_type' => 'page')));
}
示例8: setUp
public function setUp()
{
parent::setup();
$this->controller = new PasswordsController();
}
示例9: setUp
public function setUp()
{
parent::setup();
$this->controller = new RegistrationsController();
}
示例10: setup
/**
* Init
* @return [type] [description]
*/
function setup()
{
parent::setup();
global $frontend_uploader;
$this->fu = $frontend_uploader;
}
示例11: setup
/**
* Init
*
* @return [type] [description]
*/
function setup()
{
parent::setup();
$this->di = new Drop_It();
$this->di->register_drops();
}