當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TestHelper::getHtmlTemplatePaths方法代碼示例

本文整理匯總了PHP中TestHelper::getHtmlTemplatePaths方法的典型用法代碼示例。如果您正苦於以下問題:PHP TestHelper::getHtmlTemplatePaths方法的具體用法?PHP TestHelper::getHtmlTemplatePaths怎麽用?PHP TestHelper::getHtmlTemplatePaths使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TestHelper的用法示例。


在下文中一共展示了TestHelper::getHtmlTemplatePaths方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = clone TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Account_History_Detail_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:arcavias,項目名稱:arcavias-core,代碼行數:13,代碼來源:DefaultTest.php

示例2: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $context = \TestHelper::getContext();
     $paths = \TestHelper::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Catalog\Lists\Items\Standard($context, $paths);
     $catalogManager = \Aimeos\MShop\Catalog\Manager\Factory::createManager($context);
     $search = $catalogManager->createSearch();
     $search->setConditions($search->compare('==', 'catalog.code', 'cafe'));
     $catItems = $catalogManager->searchItems($search);
     if (($catItem = reset($catItems)) === false) {
         throw new \Exception('No catalog item found');
     }
     $productManager = \Aimeos\MShop\Product\Manager\Factory::createManager($context);
     $search = $productManager->createSearch();
     $search->setConditions($search->compare('==', 'product.code', array('CNC', 'CNE')));
     $total = 0;
     $view = \TestHelper::getView();
     $view->listProductItems = $productManager->searchItems($search, array('media', 'price', 'text'), $total);
     $view->listProductTotal = $total;
     $view->listPageSize = 100;
     $view->listPageCurr = 1;
     $view->listParams = array();
     $view->listCatPath = array($catalogManager->createItem(), $catItem);
     $this->object->setView($view);
 }
開發者ID:boettner-it,項目名稱:aimeos-core,代碼行數:31,代碼來源:StandardTest.php

示例3: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Checkout_Standard_Summary_Service_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:13,代碼來源:DefaultTest.php

示例4: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->context = clone \TestHelper::getContext();
     $paths = \TestHelper::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Account\History\Lists\Standard($this->context, $paths);
     $this->object->setView(\TestHelper::getView());
 }
開發者ID:boettner-it,項目名稱:aimeos-core,代碼行數:13,代碼來源:StandardTest.php

示例5: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->context = \TestHelper::getContext();
     $paths = \TestHelper::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Checkout\Standard\Payment\Standard($this->context, $paths);
     $this->object->setView(\TestHelper::getView());
 }
開發者ID:boettner-it,項目名稱:aimeos-core,代碼行數:13,代碼來源:StandardTest.php

示例6: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Catalog_Session_Pinned_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:13,代碼來源:DefaultTest.php

示例7: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Catalog_List_Items_Default($context, $paths);
     $catalogManager = MShop_Catalog_Manager_Factory::createManager($context);
     $search = $catalogManager->createSearch();
     $search->setConditions($search->compare('==', 'catalog.code', 'cafe'));
     $catItems = $catalogManager->searchItems($search);
     if (($catItem = reset($catItems)) === false) {
         throw new Exception('No catalog item found');
     }
     $productManager = MShop_Product_Manager_Factory::createManager($context);
     $search = $productManager->createSearch();
     $search->setConditions($search->compare('==', 'product.code', array('CNC', 'CNE')));
     $total = 0;
     $view = TestHelper::getView();
     $view->listProductItems = $productManager->searchItems($search, array('media', 'price', 'text'), $total);
     $view->listProductTotal = $total;
     $view->listPageSize = 100;
     $view->listPageCurr = 1;
     $view->listParams = array();
     $view->listCatPath = array($catalogManager->createItem(), $catItem);
     $this->_object->setView($view);
 }
開發者ID:arcavias,項目名稱:arcavias-core,代碼行數:31,代碼來源:DefaultTest.php

示例8: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Catalog_List_Simple($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:arcavias,項目名稱:arcavias-core,代碼行數:13,代碼來源:SimpleTest.php

示例9: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->context = \TestHelper::getContext();
     $paths = \TestHelper::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Catalog\Session\Pinned\Standard($this->context, $paths);
     $this->object->setView(\TestHelper::getView());
 }
開發者ID:boettner-it,項目名稱:aimeos-core,代碼行數:13,代碼來源:StandardTest.php

示例10: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Basket_Mini_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:13,代碼來源:DefaultTest.php

示例11: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Checkout_Confirm_Intro_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:13,代碼來源:DefaultTest.php

示例12: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Catalog_Stage_Navigator_Default($context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:13,代碼來源:DefaultTest.php

示例13: setUp

 protected function setUp()
 {
     \Aimeos\MShop\Factory::setCache(true);
     $this->context = \TestHelper::getContext();
     $paths = \TestHelper::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Checkout\Standard\Order\Account\Standard($this->context, $paths);
     $this->object->setView(\TestHelper::getView());
 }
開發者ID:boettner-it,項目名稱:aimeos-core,代碼行數:8,代碼來源:StandardTest.php

示例14: setUp

 protected function setUp()
 {
     MShop_Factory::setCache(true);
     $this->_context = TestHelper::getContext();
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Checkout_Standard_Order_Account_Default($this->_context, $paths);
     $this->_object->setView(TestHelper::getView());
 }
開發者ID:Bananamoon,項目名稱:aimeos-core,代碼行數:8,代碼來源:DefaultTest.php

示例15: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_context = TestHelper::getContext();
     $this->_emailMock = $this->getMock('MW_Mail_Message_None');
     $paths = TestHelper::getHtmlTemplatePaths();
     $this->_object = new Client_Html_Email_Watch_Text_Salutation_Default($this->_context, $paths);
     $view = TestHelper::getView();
     $view->extAddressItem = self::$_customerItem->getPaymentAddress();
     $view->addHelper('mail', new MW_View_Helper_Mail_Default($view, $this->_emailMock));
     $this->_object->setView($view);
 }
開發者ID:arcavias,項目名稱:arcavias-core,代碼行數:17,代碼來源:DefaultTest.php


注:本文中的TestHelper::getHtmlTemplatePaths方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。