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


PHP CroogoTestCase::setUp方法代码示例

本文整理汇总了PHP中CroogoTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP CroogoTestCase::setUp方法的具体用法?PHP CroogoTestCase::setUp怎么用?PHP CroogoTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CroogoTestCase的用法示例。


在下文中一共展示了CroogoTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     App::build(array('Plugin' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)), App::PREPEND);
     $this->CroogoPlugin = $this->getMock('CroogoPlugin', array('_writeSetting', 'needMigration'));
     $this->_mapping = array(1346748762 => array('version' => 1346748762, 'name' => '1346748762_first', 'class' => 'First', 'type' => 'app', 'migrated' => '2012-09-04 10:52:42'), 1346748933 => array('version' => 1346748933, 'name' => '1346748933_addstatus', 'class' => 'AddStatus', 'type' => 'app', 'migrated' => '2012-09-04 10:55:33'));
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:7,代码来源:CroogoPluginTest.php

示例2: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $Folder = new Folder(APP . 'Plugin' . DS . 'Example');
     $Folder->copy(TESTS . 'test_app' . DS . 'Plugin' . DS . 'Example');
     $this->Setting = ClassRegistry::init('Settings.Setting');
 }
开发者ID:laiello,项目名称:plankonindia,代码行数:12,代码来源:ExtShellTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->View = new View(null);
     $this->AppHelper = new AppHelper($this->View);
     $this->AppHelper->request = new CakeRequest(null, false);
 }
开发者ID:romaing,项目名称:croogo-rg,代码行数:7,代码来源:AppHelperTest.php

示例4: setUp

 public function setUp()
 {
     $this->FileManager = new FileManager(false, null, null, null);
     $this->__testAppPath = CakePlugin::path('FileManager') . 'Test' . DS . 'test_app' . DS;
     $this->__setFilePathsForTests();
     parent::setUp();
 }
开发者ID:saydulk,项目名称:croogo,代码行数:7,代码来源:FileManagerTest.php

示例5: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $Folder = new Folder(APP . 'Plugin' . DS . 'Example');
     $Folder->copy(CakePlugin::path('Croogo') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example');
     $this->Setting = ClassRegistry::init('Settings.Setting');
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:12,代码来源:ExtShellTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->loadFixtures('Trackable');
     $this->model = ClassRegistry::init(array('class' => 'TestModel', 'alias' => 'TestModel', 'table' => 'trackables'));
     $this->model->Behaviors->attach('Croogo.Trackable');
 }
开发者ID:saydulk,项目名称:croogo,代码行数:7,代码来源:TrackableBehaviorTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->_level = Configure::read('Comment.level');
     Configure::write('Comment.level', 10);
     $this->Comment = ClassRegistry::init('Comments.Comment');
     $this->_record = $this->Comment->findById(1);
 }
开发者ID:saydulk,项目名称:croogo,代码行数:8,代码来源:CommentTest.php

示例8: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->OrderRecord = ClassRegistry::init('OrderRecord');
     $this->OrderRecord->Behaviors->attach('Ordered', array('field' => 'weight', 'foreign_key' => null));
     $this->defaultPrefix = Configure::read('Cache.defaultPrefix');
     $this->Block = ClassRegistry::init('Blocks.Block');
 }
开发者ID:saydulk,项目名称:croogo,代码行数:13,代码来源:OrderedBehaviorTest.php

示例9: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $request = $this->getMock('CakeRequest');
     $response = $this->getMock('CakeResponse');
     $this->View = new View(new TheNodesTestController($request, $response));
     $this->Nodes = new NodesHelper($this->View);
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:11,代码来源:NodesHelperTest.php

示例10: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->User = ClassRegistry::init('Users.User');
     $this->User->Behaviors->unload('Acl');
     $this->User->Behaviors->unload('Searchable');
     $this->defaultPrefix = Configure::read('Cache.defaultPrefix');
 }
开发者ID:saydulk,项目名称:croogo,代码行数:13,代码来源:CachedBehaviorTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     CakePlugin::load('Translate');
     $this->View = new View(null);
     $this->AppHelper = new CroogoAppHelper($this->View);
     $this->AppHelper->request = new CakeRequest(null, false);
 }
开发者ID:saydulk,项目名称:croogo,代码行数:8,代码来源:CroogoAppHelperTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     CakePlugin::load('Translate', array('bootstrap' => true));
     $this->View = new View(null);
     $this->AppHelper = new AppHelper($this->View);
     $this->AppHelper->request = new CakeRequest(null, false);
 }
开发者ID:laiello,项目名称:plankonindia,代码行数:8,代码来源:AppHelperTest.php

示例13: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Node = ClassRegistry::init('Nodes.Node');
     if (!CakePlugin::loaded('Translate')) {
         CakePlugin::load('Translate');
     }
     $this->Node->Behaviors->attach('Translate.CroogoTranslate', array('fields' => array('title' => 'titleTranslation')));
 }
开发者ID:saydulk,项目名称:croogo,代码行数:14,代码来源:CroogoTranslateBehaviorTest.php

示例14: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     App::build(array('Plugin' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), 'View' => array(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS)), App::PREPEND);
     $this->testPlugin = CakePlugin::path('Extensions') . 'Test' . DS . 'test_files' . DS . 'example_plugin.zip';
     $this->testTheme = CakePlugin::path('Extensions') . 'Test' . DS . 'test_files' . DS . 'example_theme.zip';
     $this->CroogoComposer = new CroogoComposer();
     $this->CroogoComposer->appPath = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS;
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:14,代码来源:CroogoComposerTest.php

示例15: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->ComponentCollection = new ComponentCollection();
     $request = $this->getMock('CakeRequest');
     $response = $this->getMock('CakeResponse');
     $this->View = new View(new TheTaxonomyTestController($request, $response));
     $this->Taxonomies = new TaxonomiesHelper($this->View);
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:12,代码来源:TaxonomiesHelperTest.php


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