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


PHP Kwc_TestAbstract::setUp方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     Kwf_Registry::get('config')->languages = array('de', 'en');
     Kwf_Trl::getInstance()->setWebCodeLanguage('de');
     parent::setUp('Kwc_Trl_StaticTexts_Root');
     $trlElements = array();
     $trlElements['web']['de']['Sichtbar-'] = 'Sichtbar';
     $trlElements['web']['de']['Am-time'] = 'Am';
     $trlElements['web']['de']['Antwort-'] = 'Antwort';
     $trlElements['web']['de_plural']['Antworten-'] = 'Antworten';
     $trlElements['web']['de']['Antwort-test'] = 'Antwort';
     $trlElements['web']['de_plural']['Antworten-test'] = 'Antworten';
     $trlElements['kwf']['de']['Visible-'] = 'Sichtbar';
     $trlElements['kwf']['de']['On-time'] = 'Am';
     $trlElements['kwf']['de']['reply-'] = 'Antwort';
     $trlElements['kwf']['de_plural']['replies-'] = 'Antworten';
     $trlElements['kwf']['de']['reply-test'] = 'Antwort';
     $trlElements['kwf']['de_plural']['replies-test'] = 'Antworten';
     $trlElements['web']['en'] = array();
     $trlElements['web']['en']['Sichtbar-'] = 'Visible';
     $trlElements['web']['en']['Am-time'] = 'On';
     $trlElements['web']['en']['Antwort-'] = 'reply';
     $trlElements['web']['en_plural']['Antworten-'] = 'replies';
     $trlElements['web']['en']['Antwort-test'] = 'reply';
     $trlElements['web']['en_plural']['Antworten-test'] = 'replies';
     $trlElements['kwf']['en']['Visible-'] = 'Visible';
     $trlElements['kwf']['en']['On-time'] = 'On';
     $trlElements['kwf']['en']['reply-'] = 'reply';
     $trlElements['kwf']['en_plural']['replies-'] = 'replies';
     $trlElements['kwf']['en']['reply-test'] = 'reply';
     $trlElements['kwf']['en_plural']['replies-test'] = 'replies';
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:33,代码来源: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('Kwc_Trl_NewsCategories_Root');
     $trlElements = array();
     $trlElements['kwf']['de'] = array();
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Test.php

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

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

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

示例9: setUp

 public function setUp()
 {
     parent::setUp('Kwc_Favourites_Root');
     //use custom user model
     $this->_previousUserModel = Kwf_Registry::get('config')->user->model;
     Kwf_Registry::get('config')->user->model = 'Kwc_Favourites_UserModel';
     //unset existing userModel instance to get new one
     $reg = Kwf_Registry::getInstance()->set('userModel', Kwf_Model_Abstract::getInstance('Kwc_Favourites_UserModel'));
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:9,代码来源:BoxTest.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_Generator_AlternativeComponent_Root');
     /*
             root
             _1 (composite)
      -child (default)
      _2 (composite)
        -child (alternative)
     */
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:11,代码来源:Test.php

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

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