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


PHP Kwc_TestAbstract类代码示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setUp('Kwc_Trl_NewsCategories_Root');
     $trlElements = array();
     $trlElements['kwf']['de'] = array();
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php

示例2: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_LinkTag_Intern_Root_Component');
     $this->_linkModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_Link_Model');
     $this->_pagesModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_Model');
     $this->_tableModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_Intern_Root_TableModel');
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php

示例3: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_MenuHasContent_Root');
     /*
             root
      -menuMain (empty)
      -menuTop (empty)
      -top
        -menuMain (otherCategory)
        -menuTop (menu)
        2 (invisible)
          -menuMain (parentMenu)
          -menuTop (parentMenu)
      -main
        -menuMain (menu)
        -menuTop (otherCategory)
        1
          -menuMain (parentMenu)
          -menuTop (parentContent)
          3
            -menuMain (parentContent)
            -menuTop (parentContent)
            4
              -menuMain (parentContent)
              -menuTop (parentContent)
     */
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:27,代码来源:ContentTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_MenuHasContent_Root');
     Kwf_Component_Cache_MenuHasContent_Root_Events::$hasContentChanged = array();
     /*
             root
      -menuMain
      -menuTop
      -top
        -menuMain
        -menuTop
        2 (invisible)
          -menuMain
          -menuTop
      -main
        -menuMain
        -menuTop
        1
          -menuMain
          -menuTop
          3
            -menuMain
            -menuTop
            4
              -menuMain
              -menuTop
     */
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:28,代码来源:Test.php

示例5: tearDown

 public function tearDown()
 {
     if (isset($_SERVER['HTTP_REFERER'])) {
         unset($_SERVER['HTTP_REFERER']);
     }
     parent::tearDown();
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php

示例6: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Acl_AllowedComponents_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('special'));
     $this->_acl->allowComponent('special', 'Kwf_Component_Acl_AllowedComponents_Special');
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Test.php

示例7: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Acl_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Kwf_Acl_Role('test', 'MainRole'));
     $acl->addRole(new Kwf_Acl_Role_Additional('testsub', 'SubRole', 'test'));
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Test.php

示例8: tearDown

 public function tearDown()
 {
     Kwf_Trl::getInstance()->setWebCodeLanguage(null);
     Kwf_Trl::getInstance()->unsetTrlElements();
     Kwf_Cache_SimpleStatic::clear('trl-');
     Kwf_Cache_SimpleStatic::clear('trlp-');
     parent::tearDown();
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:8,代码来源:Test.php

示例9: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_PagesController_WithCategories_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('test'));
     $this->_acl->allowComponent('test', null);
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:8,代码来源:Test.php

示例10: setUp

 public function setUp()
 {
     parent::setUp('Kwc_Trl_Legacy_Columns_Root');
     //initialize model content, I don't know why here
     $proxyModel = Kwf_Model_Abstract::getInstance('Kwc_Trl_Legacy_Columns_Columns_Trl_ColumnsTrlModel')->getProxyModel();
     $proxyModel->createRow(array('component_id' => 'root-en_test-1', 'visible' => 1))->save();
     $proxyModel->createRow(array('component_id' => 'root-en_test-2', 'visible' => 1))->save();
     $proxyModel->createRow(array('component_id' => 'root-en_test-3', 'visible' => 1))->save();
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:9,代码来源:Test.php

示例11: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_PagesController_PagesGeneratorActions_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('test'));
     $this->_acl->allowComponent('test', null);
     $acl->addRole(new Zend_Acl_Role('special'));
     $this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialComponent');
     $this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialWithoutEditComponent');
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:11,代码来源:Test.php

示例12: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Generator_AlternativeComponent_Root');
     /*
             root
             _1 (composite)
      -child (default)
      _2 (composite)
        -child (alternative)
     */
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:11,代码来源:Test.php

示例13: setUp

 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_Component');
     /*
             -root
     -1
      -2 (linktag_firstchildpage)
       -3
       -4
     -5
     */
     $this->_pagesModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_Model');
     $this->_tableModel = Kwf_Model_Abstract::getInstance('Kwf_Component_Cache_LinkTag_FirstChildPage_Root_TableModel');
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:14,代码来源:Test.php

示例14: setUp

 public function setUp()
 {
     parent::setUp('Kwc_Menu_ClearCacheExpanded_Root');
     $this->_root->setFilename('');
     /*
             root
      -menuMain
      -menuSub
      -main
        -menuMain
        -menuSub
        1
          -menuMain
          -menuSub
          3
            -menuMain
            -menuSub
            4
              -menuMain
              -menuSub
              10
                -menuMain
                -menuSub
                11
                  -menuMain
                  -menuSub
          8
            -menuMain
            -menuSub
            9
              -menuMain
              -menuSub
        5
          -menuMain
          -menuSub
          6
            -menuMain
            -menuSub
            7
              -menuMain
              -menuSub
      -bottom
        -menuMain
        -menuSub
        2
          -menuMain
          -menuSub
     */
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:49,代码来源:AddPageTest.php

示例15: setUp

 public function setUp()
 {
     /*
     root
     |-ic
     | |-child
     |-1
       |-ic
       | |-child
       |-2
         |-ic
           |-child
     */
     parent::setUp('Kwf_Component_Cache_Box_IcRoot_Component');
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:15,代码来源:InheritContentTest.php


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