本文整理汇总了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);
}
示例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');
}
示例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)
*/
}
示例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
*/
}
示例5: tearDown
public function tearDown()
{
if (isset($_SERVER['HTTP_REFERER'])) {
unset($_SERVER['HTTP_REFERER']);
}
parent::tearDown();
}
示例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');
}
示例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'));
}
示例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();
}
示例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);
}
示例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();
}
示例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');
}
示例12: setUp
public function setUp()
{
parent::setUp('Kwf_Component_Generator_AlternativeComponent_Root');
/*
root
_1 (composite)
-child (default)
_2 (composite)
-child (alternative)
*/
}
示例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');
}
示例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
*/
}
示例15: setUp
public function setUp()
{
/*
root
|-ic
| |-child
|-1
|-ic
| |-child
|-2
|-ic
|-child
*/
parent::setUp('Kwf_Component_Cache_Box_IcRoot_Component');
}