• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CroogoTestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: 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


示例3: 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


示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $request = $this->_apiRequest(array('api' => 'api', 'prefix' => 'v1.0', 'controller' => 'users', 'action' => 'index'));
     $response = $this->getMock('CakeRespone');
     $this->Controller = new TestBaseApiController($request, $response);
     $this->Controller->constructClasses();
     $this->Controller->startupProcess();
     $this->TestApi = $this->Controller->TestApi;
 }
开发者ID:saydulk,项目名称:croogo,代码行数:10,代码来源:BaseApiComponentTest.php


示例5: setUp

 /**
  * setup
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Collection = $this->getMock('ComponentCollection');
     $this->auth = new MultiColumnAuthenticate($this->Collection, array('fields' => array('username' => 'user', 'password' => 'password'), 'userModel' => 'MultiUser', 'columns' => array('user', 'email')));
     $password = Security::hash('password', null, true);
     $User = ClassRegistry::init('MultiUser');
     $User->updateAll(array('password' => $User->getDataSource()->value($password)));
     $this->response = $this->getMock('CakeResponse');
 }
开发者ID:saydulk,项目名称:croogo,代码行数:15,代码来源:MultiColumnAuthenticateTest.php


示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->Controller = new CroogoTestController(new CakeRequest(), new CakeResponse());
     $this->Controller->constructClasses();
     $this->Controller->Croogo = new MockCroogoComponent($this->Controller->Components);
     $this->Controller->Components->unload('Blocks');
     $this->Controller->Components->unload('Menus');
     $this->Controller->Components->set('Croogo', $this->Controller->Croogo);
     $this->Controller->startupProcess();
 }
开发者ID:laiello,项目名称:plankonindia,代码行数:11,代码来源:CroogoComponentTest.php


示例7: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->ComponentCollection = new ComponentCollection();
     $request = new CakeRequest('nodes/nodes/index');
     $request->params = array('plugin' => 'nodes', 'controller' => 'nodes', 'action' => 'index', 'named' => array());
     $view = new View(new TheRegionsTestController($request, new CakeResponse()));
     $this->Regions = $this->getMock('RegionsHelper', array('log'), array($view));
     $this->_appEncoding = Configure::read('App.encoding');
     $this->_asset = Configure::read('Asset');
     $this->_debug = Configure::read('debug');
 }
开发者ID:laiello,项目名称:plankonindia,代码行数:15,代码来源:RegionsHelperTest.php


示例8: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->ComponentCollection = new ComponentCollection();
     $request = $this->getMock('CakeRequest');
     $response = $this->getMock('CakeResponse');
     $this->View = new View(new TheMenuTestController($request, $response));
     $this->Menus = new MenusHelper($this->View);
     $this->_appEncoding = Configure::read('App.encoding');
     $this->_asset = Configure::read('Asset');
     $this->_debug = Configure::read('debug');
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:15,代码来源:MenusHelperTest.php


示例9: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example';
     $Folder = new Folder($path);
     $Folder->delete();
     $path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal';
     $Folder = new Folder($path);
     $Folder->delete();
     $File = new File(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'composer.json');
     $File->delete();
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:17,代码来源:CroogoComposerTest.php


示例10: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->ComponentCollection = new ComponentCollection();
     $request = new CakeRequest('nodes/index');
     $request->params = array('controller' => 'nodes', 'action' => 'index', 'named' => array());
     $view = new View(new TheMenuTestController($request, new CakeResponse()));
     $this->Menus = new MenusHelper($view);
     $this->_appEncoding = Configure::read('App.encoding');
     $this->_asset = Configure::read('Asset');
     $this->_debug = Configure::read('debug');
 }
开发者ID:laiello,项目名称:plankonindia,代码行数:15,代码来源:MenusHelperTest.php


示例11: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $Folder = new Folder(TMP);
     $files = $Folder->find('croogo_.*');
     foreach ($files as $file) {
         unlink(TMP . $file);
     }
     $Folder = new Folder(TESTS . 'test_app' . DS . 'Plugin' . DS . 'Example');
     $Folder->delete();
     $Folder = new Folder(TESTS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal');
     $Folder->delete();
 }
开发者ID:romaing,项目名称:croogo-rg,代码行数:18,代码来源:InstallShellTest.php


示例12: setUp

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->ComponentCollection = new ComponentCollection();
     $request = new CakeRequest('nodes/index');
     $request->params = array('controller' => 'nodes', 'action' => 'index', 'named' => array());
     $view = new View(new TheCroogoTestController($request, new CakeResponse()));
     $this->Croogo = new CroogoHelper($view);
     $aclHelper = Configure::read('Site.acl_plugin') . 'Helper';
     $this->Croogo->Acl = $this->getMock($aclHelper, array('linkIsAllowedByRoleId'), array($view));
     $this->Croogo->Acl->expects($this->any())->method('linkIsAllowedByRoleId')->will($this->returnValue(true));
     $this->menus = CroogoNav::items();
     CroogoNav::clear();
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:17,代码来源:CroogoHelperTest.php


示例13: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example';
     $Folder = new Folder($path);
     $Folder->delete();
     $path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal';
     $Folder = new Folder($path);
     $Folder->delete();
     if (file_exists($this->minimalPlugin)) {
         unlink($this->minimalPlugin);
     }
     if (file_exists($this->invalidPlugin)) {
         unlink($this->invalidPlugin);
     }
 }
开发者ID:croogo,项目名称:croogo,代码行数:21,代码来源:ExtensionsInstallerTest.php


示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->Setting);
 }
开发者ID:romaing,项目名称:croogo-rg,代码行数:5,代码来源:SettingTest.php


示例15: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     CroogoPlugin::unload('Shops');
 }
开发者ID:saydulk,项目名称:croogo,代码行数:10,代码来源:CroogoEventManagerTest.php


示例16: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->CroogoTheme);
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:5,代码来源:CroogoThemeTest.php


示例17: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->Node);
 }
开发者ID:saydulk,项目名称:croogo,代码行数:5,代码来源:NodeTest.php


示例18: tearDown

 public function tearDown()
 {
     unset($this->FileManager);
     parent::tearDown();
 }
开发者ID:saydulk,项目名称:croogo,代码行数:5,代码来源:FileManagerTest.php


示例19: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->CroogoPlugin);
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:5,代码来源:CroogoPluginTest.php


示例20: tearDown

 public function tearDown()
 {
     parent::tearDown();
     CroogoNav::items(self::$_menus);
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:5,代码来源:CroogoNavTest.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CrowdfundingHelper类代码示例发布时间:2022-05-23
下一篇:
PHP Croogo类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap