/** * 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'); }
/** * 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'); }
/** * 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'); }
/** * 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); }
/** * 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; }
/** * 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'); }
/** * 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; }
/** * 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; }
/** * 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/*'); }
/** * set up * * @return void */ public function setUp() { parent::setUp(); $this->requestFilter = new BcRequestFilter(); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); }
/** * 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); }
/** * set up * * @return void */ public function setUp() { parent::setUp(); $this->Content = ClassRegistry::init('Content'); BcSite::flash(); }
public function setUp() { parent::setUp(); $this->Theme = ClassRegistry::init('Theme'); }
public function setUp() { parent::setUp(); $this->SiteConfig = ClassRegistry::init('SiteConfig'); }
public function setUp() { parent::setUp(); $this->Menu = ClassRegistry::init('Menu'); }
public function setUp() { parent::setUp(); $View = new View(); $this->BcWidgetArea = new BcWidgetAreaHelper($View); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->Page = ClassRegistry::init('Page'); }
public function setUp() { parent::setUp(); $View = new View(); $this->BcCsv = new BcCsvHelper($View); }
public function setUp() { $this->Message = ClassRegistry::init('Message'); parent::setUp(); }
public function setUp() { parent::setUp(); $this->WidgetArea = ClassRegistry::init('WidgetArea'); }