当前位置: 首页>>代码示例>>PHP>>正文


PHP BaserTestCase::setUp方法代码示例

本文整理汇总了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');
 }
开发者ID:naow9y,项目名称:basercms,代码行数:12,代码来源:BcPluginContentBehaviorTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $View = new View();
     $this->BcCkeditor = new BcCkeditorHelper($View);
     $this->BcCkeditor->request = $this->_getRequest('/');
 }
开发者ID:baserproject,项目名称:basercms,代码行数:7,代码来源:BcCkeditorHelperTest.php

示例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');
 }
开发者ID:naow9y,项目名称:basercms,代码行数:12,代码来源:BcContentsManagerBehaviorTest.php

示例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/');
 }
开发者ID:baserproject,项目名称:basercms,代码行数:12,代码来源:BcMobileHelperTest.php

示例5: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     @session_start();
     parent::setUp();
     $this->EditorTemplate = ClassRegistry::init('EditorTemplate');
     $this->BcUploadBehavior = ClassRegistry::init('BcUploadBehavior');
 }
开发者ID:baserproject,项目名称:basercms,代码行数:12,代码来源:BcUploadBehaviorTest.php

示例6: setUp

 /**
  * set up
  *
  * @return void
  */
 public function setUp()
 {
     // 前のテストで変更されている為
     $BcAuth = new BcAuthComponent(new ComponentCollection([]));
     $BcAuth->setSessionKey('Auth.User');
     @session_start();
     parent::setUp();
 }
开发者ID:baserproject,项目名称:basercms,代码行数:13,代码来源:BcUtilTest.php

示例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());
 }
开发者ID:baserproject,项目名称:basercms,代码行数:8,代码来源:BcTextHelperTest.php

示例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;
 }
开发者ID:baserproject,项目名称:basercms,代码行数:13,代码来源:BcContentsHelperTest.php

示例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');
 }
开发者ID:baserproject,项目名称:basercms,代码行数:14,代码来源:BlogBaserHelperTest.php

示例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');
 }
开发者ID:naow9y,项目名称:basercms,代码行数:14,代码来源:BcAppTest.php

示例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);
 }
开发者ID:baserproject,项目名称:basercms,代码行数:16,代码来源:BcFormHelperTest.php

示例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;
 }
开发者ID:naow9y,项目名称:basercms,代码行数:16,代码来源:BcPageHelperTest.php

示例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');
 }
开发者ID:baserproject,项目名称:basercms,代码行数:16,代码来源:BlogHelperTest.php

示例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;
 }
开发者ID:kenz,项目名称:basercms,代码行数:14,代码来源:BcBaserHelperTest.php

示例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;
 }
开发者ID:naow9y,项目名称:basercms,代码行数:17,代码来源:BcBaserHelperTest.php


注:本文中的BaserTestCase::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。