/**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->BlogContent = ClassRegistry::init('BlogContent');
     $this->PluginContent = ClassRegistry::init('PluginContent');
     $this->BcPluginContentBehavior = ClassRegistry::init('BcPluginContentBehavior');
 }
 public function setUp()
 {
     parent::setUp();
     $View = new View();
     $this->BcCkeditor = new BcCkeditorHelper($View);
     $this->BcCkeditor->request = $this->_getRequest('/');
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Page = ClassRegistry::init('Page');
     $this->Content = ClassRegistry::init('Content');
     $this->SiteConfig = ClassRegistry::init('SiteConfig');
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $View = new View();
     $this->BcMobile = new BcMobileHelper($View);
     $this->BcMobile->request = $this->_getRequest('/m/');
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     @session_start();
     parent::setUp();
     $this->EditorTemplate = ClassRegistry::init('EditorTemplate');
     $this->BcUploadBehavior = ClassRegistry::init('BcUploadBehavior');
 }
示例#6
0
 /**
  * set up
  *
  * @return void
  */
 public function setUp()
 {
     // 前のテストで変更されている為
     $BcAuth = new BcAuthComponent(new ComponentCollection([]));
     $BcAuth->setSessionKey('Auth.User');
     @session_start();
     parent::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());
 }
 /**
  * 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;
 }
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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;
 }
示例#16
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('Config.language', 'jp');
     Configure::write('App.base', '');
     Configure::delete('Asset');
     $this->BcFreeze = new BcFreezeHelper(new View());
     $this->BcFreeze->request = new CakeRequest('contacts/add', false);
     $this->BcFreeze->request->here = '/contacts/add';
     $this->BcFreeze->request['action'] = 'add';
     $this->BcFreeze->request->webroot = '';
     $this->BcFreeze->request->base = '';
 }
 public function setUp()
 {
     parent::setUp();
     // コンポーネントと偽のテストコントローラをセットアップする
     $request = new CakeRequest();
     $response = $this->getMock('CakeResponse');
     $this->Controller = new BcReplacePrefixTestController($request, $response);
     $collection = new ComponentCollection();
     $collection->init($this->Controller);
     $this->BcReplacePrefix = new BcReplacePrefixComponent($collection);
     $this->BcReplacePrefix->request = $request;
     $this->BcReplacePrefix->response = $response;
     $this->Controller->Components->init($this->Controller);
     Router::reload();
     Router::connect('/:controller/:action/*');
 }
 public function setUp()
 {
     @session_start();
     parent::setUp();
     // コンポーネントと偽のコントローラをセットアップする
     $request = new CakeRequest();
     $response = $this->getMock('CakeResponse');
     $this->Controller = new BcAuthConfigureTestController($request, $response);
     $collection = new ComponentCollection();
     $collection->init($this->Controller);
     $this->BcAuthConfigure = new BcAuthConfigureComponent($collection);
     $this->BcAuthConfigure->request = $request;
     $this->BcAuthConfigure->response = $response;
     $this->Controller->Components->init($this->Controller);
     Router::reload();
     Router::connect('/:controller/:action/*');
 }
示例#19
0
 /**
  * set up
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->requestFilter = new BcRequestFilter();
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
 }
示例#21
0
 /**
  * set up
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->agent = new BcAgent('smartphone', array('alias' => 's', 'prefix' => 'smartphone', 'autoRedirect' => true, 'autoLink' => true, 'agents' => array('iPhone', 'iPod', 'Android', 'dream', 'CUPCAKE', 'blackberry9500', 'blackberry9530', 'blackberry9520', 'blackberry9550', 'blackberry9800', 'webOS', 'incognito', 'webmate')));
     Configure::write("BcApp.smartphone", true);
 }
示例#22
0
 /**
  * set up
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Content = ClassRegistry::init('Content');
     BcSite::flash();
 }
示例#23
0
 public function setUp()
 {
     parent::setUp();
     $this->Theme = ClassRegistry::init('Theme');
 }
示例#24
0
 public function setUp()
 {
     parent::setUp();
     $this->SiteConfig = ClassRegistry::init('SiteConfig');
 }
示例#25
0
 public function setUp()
 {
     parent::setUp();
     $this->Menu = ClassRegistry::init('Menu');
 }
示例#26
0
 public function setUp()
 {
     parent::setUp();
     $View = new View();
     $this->BcWidgetArea = new BcWidgetAreaHelper($View);
 }
示例#27
0
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Page = ClassRegistry::init('Page');
 }
示例#28
0
 public function setUp()
 {
     parent::setUp();
     $View = new View();
     $this->BcCsv = new BcCsvHelper($View);
 }
示例#29
0
 public function setUp()
 {
     $this->Message = ClassRegistry::init('Message');
     parent::setUp();
 }
示例#30
0
 public function setUp()
 {
     parent::setUp();
     $this->WidgetArea = ClassRegistry::init('WidgetArea');
 }