本文整理汇总了PHP中BaserTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP BaserTestCase::setUp方法的具体用法?PHP BaserTestCase::setUp怎么用?PHP BaserTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaserTestCase
的用法示例。
在下文中一共展示了BaserTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->BlogContent = ClassRegistry::init('BlogContent');
$this->PluginContent = ClassRegistry::init('PluginContent');
$this->BcPluginContentBehavior = ClassRegistry::init('BcPluginContentBehavior');
}
示例2: setUp
public function setUp()
{
parent::setUp();
$View = new View();
$this->BcCkeditor = new BcCkeditorHelper($View);
$this->BcCkeditor->request = $this->_getRequest('/');
}
示例3: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->Page = ClassRegistry::init('Page');
$this->Content = ClassRegistry::init('Content');
$this->SiteConfig = ClassRegistry::init('SiteConfig');
}
示例4: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$View = new View();
$this->BcMobile = new BcMobileHelper($View);
$this->BcMobile->request = $this->_getRequest('/m/');
}
示例5: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
@session_start();
parent::setUp();
$this->EditorTemplate = ClassRegistry::init('EditorTemplate');
$this->BcUploadBehavior = ClassRegistry::init('BcUploadBehavior');
}
示例6: setUp
/**
* set up
*
* @return void
*/
public function setUp()
{
// 前のテストで変更されている為
$BcAuth = new BcAuthComponent(new ComponentCollection([]));
$BcAuth->setSessionKey('Auth.User');
@session_start();
parent::setUp();
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->Helper = new BcTextHelper(new View(null));
$this->Helper->BcForm = new BcFormHelper(new View());
$this->Helper->BcTime = new BcTimeHelper(new View());
$this->Helper->Html = new HtmlHelper(new View());
}
示例8: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->_View = new BcAppView();
$this->_View->helpers = array('BcContents');
$this->_View->loadHelpers();
$this->BcContents = $this->_View->BcContents;
}
示例9: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$View = new View();
$this->BlogBaser = new BlogBaserHelper($View);
$this->BlogContent = ClassRegistry::init('Blog.BlogContent');
$this->BlogContent->expects(array());
$this->BlogBaser->blogContent = Hash::extract($this->BlogContent->read(null, 1), 'BlogContent');
}
示例10: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->BcApp = ClassRegistry::init('BcApp');
$this->Page = ClassRegistry::init('Page');
$this->SiteConfig = ClassRegistry::init('SiteConfig');
$this->PageCategory = ClassRegistry::init('PageCategory');
$this->Dblog = ClassRegistry::init('Dblog');
}
示例11: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
Configure::write('Config.language', 'jp');
Configure::write('App.base', '');
Configure::delete('Asset');
$this->_View = new BcAppView();
$this->_View->request = $this->_getRequest('/contacts/add');
$this->BcForm = new BcFormHelper($this->_View);
$this->BcTime = new BcTimeHelper($this->_View);
}
示例12: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->_View = new BcAppView();
$this->_View->helpers = array('BcBaser', 'BcPage');
$this->_View->loadHelpers();
$this->Page = ClassRegistry::init('Page');
$this->BcBaser = $this->_View->BcBaser;
$this->BcPage = $this->_View->BcPage;
$this->BcPage->BcBaser = $this->_View->BcBaser;
}
示例13: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$View = new View();
$View->request->params['Site'] = array('use_subdomain' => null, 'name' => null, 'alias' => null);
$View->request->params['Content'] = ['url' => '/news/', 'name' => 'news', 'title' => '新着情報'];
$this->Blog = new BlogHelper($View);
$this->BlogContent = ClassRegistry::init('Blog.BlogContent');
$this->BlogContent->expects(array());
$this->Blog->blogContent = Hash::extract($this->BlogContent->read(null, 1), 'BlogContent');
}
示例14: setUp
/**
* setUp
*/
public function setUp()
{
parent::setUp();
$this->_View = new BcAppView();
$this->_View->helpers = array('BcBaser');
$this->_View->loadHelpers();
$SiteConfig = ClassRegistry::init('SiteConfig');
$this->_View->BcBaser->siteConfig = $SiteConfig->findExpanded();
$this->BcBaser = new BcBaserHelper($this->_View);
$this->BcBaser = $this->_View->BcBaser;
}
示例15: setUp
/**
* setUp
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->_View = new BcAppView();
$SiteConfig = ClassRegistry::init('SiteConfig');
$siteConfig = $SiteConfig->findExpanded();
$this->_View->set('widgetArea', $siteConfig['widget_area']);
$this->_View->set('siteConfig', $siteConfig);
$this->_View->helpers = array('BcBaser');
$this->_View->loadHelpers();
$this->BcBaser = $this->_View->BcBaser;
}