Beispiel #1
0
 public function setUp()
 {
     parent::setUp('Kwc_Trl_NewsCategories_Root');
     $trlElements = array();
     $trlElements['kwf']['de'] = array();
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
Beispiel #2
0
 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');
 }
 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)
     */
 }
Beispiel #4
0
 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
     */
 }
Beispiel #5
0
 public function tearDown()
 {
     if (isset($_SERVER['HTTP_REFERER'])) {
         unset($_SERVER['HTTP_REFERER']);
     }
     parent::tearDown();
 }
Beispiel #6
0
 public function setUp()
 {
     parent::setUp('Kwc_Trl_StaticPage_Root_Component');
     $trlElements = array();
     $trlElements['kwf']['de']['Visible-'] = 'Sichtbar';
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
Beispiel #7
0
 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');
 }
Beispiel #8
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_RendererDynamicUseViewCache_Root');
     $this->_root->setFilename(false);
     Kwf_Component_Cache_RendererDynamicUseViewCache_Page1_TestPartial::setIds(array(1, 2, 3));
     Kwf_Component_Cache_RendererDynamicUseViewCache_Page1_Component::$getPartialVarsCalled = 0;
     Kwf_Component_Cache_RendererDynamicUseViewCache_Page1_TestPartial::$getIdsCalled = 0;
 }
Beispiel #9
0
 public function setUp()
 {
     parent::setUp('Kwc_Trl_DateHelper_Root');
     $trlElements = array();
     $trlElements['kwf']['de']['Y-m-d-'] = 'd.m.Y';
     $trlElements['kwf']['de']['Y-m-d H:i-'] = 'd.m.Y H:i';
     Kwf_Trl::getInstance()->setTrlElements($trlElements);
 }
Beispiel #10
0
 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'));
 }
Beispiel #11
0
 public function setUp()
 {
     if (Kwf_Cache_Simple::getBackend() == 'apc') {
         $this->markTestSkipped("Test doesn't work with apc in cli.");
     }
     parent::setUp('Kwf_Component_Cache_Mysql_Root_Component');
     Kwf_Component_Cache::setInstance(new Kwf_Component_Cache_Mysql_Cache());
 }
 public function tearDown()
 {
     Kwf_Trl::getInstance()->setWebCodeLanguage(null);
     Kwf_Trl::getInstance()->unsetTrlElements();
     Kwf_Cache_SimpleStatic::clear('trl-');
     Kwf_Cache_SimpleStatic::clear('trlp-');
     parent::tearDown();
 }
 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);
 }
 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();
 }
Beispiel #15
0
 public function setUp()
 {
     parent::setUp('Kwc_Trl_Image_Root');
     //master image
     Kwf_Model_Abstract::getInstance('Kwc_Trl_Image_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-master_test1', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test2', 'kwf_upload_id' => '1')));
     //trl image
     Kwf_Model_Abstract::getInstance('Kwc_Trl_Image_Image_Trl_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1', 'own_image' => 0), array('component_id' => 'root-en_test2', 'own_image' => 1)));
     //own image (below trl image)
     Kwf_Model_Abstract::getInstance('Kwc_Trl_Image_Image_Trl_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test2-image', 'kwf_upload_id' => '2')));
 }
Beispiel #16
0
 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');
 }
Beispiel #17
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Generator_AlternativeComponent_Root');
     /*
             root
             _1 (composite)
      -child (default)
      _2 (composite)
        -child (alternative)
     */
 }
Beispiel #18
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_MenuStaticPage_Root');
     /*
             root
      -menu
      _1
        -menu
        -1
          _page
     */
 }
Beispiel #19
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Generator_StaticPageUnderTable_Root');
     /*
     root
       page1 (page)
         1 (no page)
           page (page) -> needs unique url!
         2 (no page)
           page (page)
     */
 }
Beispiel #20
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_Directory_Root_Component');
     /*
     root
      _dir (kein itemPage, keine Einträge, ist trlRoot)
        -view (gibt "{count} {$item[0]->content} {$item[1]->content} ..." aus)
      _list (hat dir als directory)
        -view (erbt von _dir-view)
      _trldir (basiert auf _dir, ist trlRoot, hat eigenes Model)
        -view (ist wie immer bei trldir gleiche Komponente wie _dir-view)
     */
 }
Beispiel #21
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Generator_StaticPageUnderStatic_Root');
     /*
     root
       page1 (page)
         component1 (no page)
           page (page) -> /component1/page
         component2 (no page) // augment url off
           component3 (no page)
             page (page) -> /component3/page
     */
 }
Beispiel #22
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Generator_DbIdRecursiveChildComponents_Root');
     /*
         - Page
             -* Detail with dbIdShortcut
               - Table
                 -* Item
                     - Page
               - Cards
                 - Card1
                    - Page
     */
 }
 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');
 }
 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
     */
 }
Beispiel #25
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_MasterHasContentBox_Root_Component');
     /*
             root
      -box1
      -box2
      _test1
        -box1
        -box2
      _test2
        -box1
        -box2
     */
 }
 public function setUp()
 {
     /*
     root
     |-ic
     | |-child
     |-1
       |-ic
       | |-child
       |-2
         |-ic
           |-child
     */
     parent::setUp('Kwf_Component_Cache_Box_IcRoot_Component');
 }
 public function setUp()
 {
     parent::setUp('Kwc_Trl_ImageEnlarge_Root');
     //master image
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-master_test1', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test2', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test3', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test4', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test5', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test6', 'kwf_upload_id' => '1'), array('component_id' => 'root-master_test7', 'kwf_upload_id' => '1')));
     //image trl
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_Trl_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1', 'own_image' => 0), array('component_id' => 'root-en_test2', 'own_image' => 0), array('component_id' => 'root-en_test3', 'own_image' => 1), array('component_id' => 'root-en_test4', 'own_image' => 1), array('component_id' => 'root-en_test5', 'own_image' => 1), array('component_id' => 'root-en_test6', 'own_image' => 0), array('component_id' => 'root-en_test7', 'own_image' => 0)));
     //image trl own image
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_Trl_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test2-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test3-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test4-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test5-image', 'kwf_upload_id' => '6'), array('component_id' => 'root-en_test6-image', 'kwf_upload_id' => null), array('component_id' => 'root-en_test7-image', 'kwf_upload_id' => '3'), array('component_id' => 'root-en_test7-image', 'kwf_upload_id' => '3')));
     //master enlarge tag
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-master_test1-linkTag'), array('component_id' => 'root-master_test2-linkTag'), array('component_id' => 'root-master_test3-linkTag'), array('component_id' => 'root-master_test4-linkTag'), array('component_id' => 'root-master_test5-linkTag'), array('component_id' => 'root-master_test6-linkTag'), array('component_id' => 'root-master_test7-linkTag')));
     //enlarge tag trl
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_Trl_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-linkTag'), array('component_id' => 'root-en_test2-linkTag'), array('component_id' => 'root-en_test3-linkTag'), array('component_id' => 'root-en_test4-linkTag'), array('component_id' => 'root-en_test5-linkTag'), array('component_id' => 'root-en_test6-linkTag'), array('component_id' => 'root-en_test7-linkTag')));
     //enlarge tag trl own image
     Kwf_Model_Abstract::getInstance('Kwc_Trl_ImageEnlarge_ImageEnlarge_EnlargeTag_Trl_Image_TestModel')->getProxyModel()->setData(array(array('component_id' => 'root-en_test1-linkTag-image'), array('component_id' => 'root-en_test2-linkTag-image'), array('component_id' => 'root-en_test3-linkTag-image'), array('component_id' => 'root-en_test4-linkTag-image'), array('component_id' => 'root-en_test5-linkTag-image'), array('component_id' => 'root-en_test6-linkTag-image'), array('component_id' => 'root-en_test7-linkTag-image')));
 }
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_Menu_Root2_Component');
     /*
     root
       -menu
       _1 (/f1)
         -menu
         _2 (/f1/f2)
           -menu
           _3 (f1/f2/f3)
             -parent-menu
       _4 (/f4)
         -menu-menu
     */
 }
 public function setUp()
 {
     parent::setUp('Kwc_Menu_ClearCache_Root');
     $this->_root->setFilename('');
     /*
             root
      -menuMain
      -menuSub
      -main
        -menuMain
        -menuSub
        1
          -menuMain
          -menuSub (Menu)
          3
            -menuMain
            -menuSub (ParentMenu)
            4
              -menuMain
              -menuSub (ParentContent)
          8
            -menuMain
            -menuSub
        5
          -menuMain
          -menuSub
          6
            -menuMain
            -menuSub
            7
              -menuMain
              -menuSub
      -bottom
        -menuMain
        -menuSub
        2
          -menuMain
          -menuSub
          9
            -menuMain
            -menuSub
            10
              -menuMain
              -menuSub
     */
 }
Beispiel #30
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Cache_Menu_Root_Component');
     /*
             root
      -menu
      _1
        -menu
        _2
          -menu
          _3
            -menu
      _4
        -menu
      _5 (invisible)
        -menu
     */
 }