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


PHP TestHelperHtml::getHtmlTemplatePaths方法代碼示例

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


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

示例1: setUp

 protected function setUp()
 {
     $this->context = \TestHelperHtml::getContext();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Basket\Related\Bought\Standard($this->context, $paths);
     $this->object->setView(\TestHelperHtml::getView());
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:7,代碼來源:StandardTest.php

示例2: testGetBodyException

 public function testGetBodyException()
 {
     $mock = $this->getMockBuilder('\\Aimeos\\Client\\Html\\Basket\\Standard\\Standard')->setConstructorArgs(array($this->context, \TestHelperHtml::getHtmlTemplatePaths()))->setMethods(array('setViewParams'))->getMock();
     $mock->setView(\TestHelperHtml::getView());
     $mock->expects($this->once())->method('setViewParams')->will($this->throwException(new \Exception()));
     $mock->getBody();
 }
開發者ID:skyheights,項目名稱:aimeos-core,代碼行數:7,代碼來源: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()
 {
     $context = \TestHelperHtml::getContext();
     $config = $context->getConfig();
     $config->set('client/html/catalog/lists/basket-add', true);
     $paths = \TestHelperHtml::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 \RuntimeException('No catalog item found');
     }
     $domains = array('media', 'price', 'text', 'attribute', 'product');
     $productManager = \Aimeos\MShop\Product\Manager\Factory::createManager($context);
     $search = $productManager->createSearch();
     $search->setConditions($search->compare('==', 'product.code', array('CNE', 'U:TEST', 'U:BUNDLE')));
     $total = 0;
     $view = \TestHelperHtml::getView('unittest', $config);
     $view->listProductItems = $productManager->searchItems($search, $domains, $total);
     $view->listProductTotal = $total;
     $view->listPageSize = 100;
     $view->listPageCurr = 1;
     $view->listParams = array();
     $view->listCatPath = array($catalogManager->createItem(), $catItem);
     $this->object->setView($view);
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:34,代碼來源:StandardTest.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 = \TestHelperHtml::getContext();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Catalog\Session\Pinned\Standard($this->context, $paths);
     $this->object->setView(\TestHelperHtml::getView());
 }
開發者ID:mvnp,項目名稱: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 = clone \TestHelperHtml::getContext();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Account\History\Lists\Standard($this->context, $paths);
     $this->object->setView(\TestHelperHtml::getView());
 }
開發者ID:mvnp,項目名稱:aimeos-core,代碼行數:13,代碼來源:StandardTest.php

示例6: setUp

 protected function setUp()
 {
     $this->context = \TestHelperHtml::getContext();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Checkout\Standard\Order\Address\Standard($this->context, $paths);
     $this->object->setView(\TestHelperHtml::getView());
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:7,代碼來源:StandardTest.php

示例7: setUp

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

示例8: setUp

 protected function setUp()
 {
     $this->context = \TestHelperHtml::getContext();
     $this->context->setEditor('UTC001');
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Checkout\Confirm\Standard($this->context, $paths);
     $this->object->setView(\TestHelperHtml::getView());
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:8,代碼來源:StandardTest.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 = \TestHelperHtml::getContext();
     $this->emailMock = $this->getMock('\\Aimeos\\MW\\Mail\\Message\\None');
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Email\Watch\Html\Salutation\Standard($this->context, $paths);
     $view = \TestHelperHtml::getView();
     $view->extAddressItem = self::$customerItem->getPaymentAddress();
     $view->addHelper('mail', new \Aimeos\MW\View\Helper\Mail\Standard($view, $this->emailMock));
     $this->object->setView($view);
 }
開發者ID:mvnp,項目名稱:aimeos-core,代碼行數:17,代碼來源: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 = \TestHelperHtml::getContext();
     $this->emailMock = $this->getMock('\\Aimeos\\MW\\Mail\\Message\\None');
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Email\Payment\Html\Legal\Standard($this->context, $paths);
     $view = \TestHelperHtml::getView();
     $view->extOrderItem = self::$orderItem;
     $view->extOrderBaseItem = self::$orderBaseItem;
     $view->addHelper('mail', new \Aimeos\MW\View\Helper\Mail\Standard($view, $this->emailMock));
     $this->object->setView($view);
 }
開發者ID:skyheights,項目名稱:aimeos-core,代碼行數:18,代碼來源:StandardTest.php

示例11: setUp

 protected function setUp()
 {
     $this->context = \TestHelperHtml::getContext();
     $this->emailMock = $this->getMockBuilder('\\Aimeos\\MW\\Mail\\Message\\None')->getMock();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Email\Account\Html\Standard($this->context, $paths);
     $view = \TestHelperHtml::getView('unittest', $this->context->getConfig());
     $view->extAddressItem = self::$customerItem->getPaymentAddress();
     $view->extAccountCode = self::$customerItem->getCode();
     $view->extAccountPassword = 'testpwd';
     $view->addHelper('mail', new \Aimeos\MW\View\Helper\Mail\Standard($view, $this->emailMock));
     $this->object->setView($view);
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:13,代碼來源:StandardTest.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()
 {
     $this->context = \TestHelperHtml::getContext();
     $this->emailMock = $this->getMock('\\Aimeos\\MW\\Mail\\Message\\None');
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Email\Delivery\Html\Salutation\Standard($this->context, $paths);
     $view = \TestHelperHtml::getView();
     $view->extOrderItem = self::$orderItem;
     $view->extOrderBaseItem = self::$orderBaseItem;
     $view->extAddressItem = self::$orderBaseItem->getAddress(\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_DELIVERY);
     $view->addHelper('mail', new \Aimeos\MW\View\Helper\Mail\Standard($view, $this->emailMock));
     $this->object->setView($view);
 }
開發者ID:mvnp,項目名稱:aimeos-core,代碼行數:19,代碼來源:StandardTest.php

示例13: 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 = \TestHelperHtml::getContext();
     $this->emailMock = $this->getMockBuilder('\\Aimeos\\MW\\Mail\\Message\\None')->getMock();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Email\Payment\Standard($this->context, $paths);
     $view = \TestHelperHtml::getView('unittest', $this->context->getConfig());
     $view->extOrderItem = self::$orderItem;
     $view->extOrderBaseItem = self::$orderBaseItem;
     $view->extAddressItem = self::$orderBaseItem->getAddress(\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT);
     $view->addHelper('mail', new \Aimeos\MW\View\Helper\Mail\Standard($view, $this->emailMock));
     $this->object->setView($view);
 }
開發者ID:aimeos,項目名稱:ai-client-html,代碼行數:19,代碼來源:StandardTest.php

示例14: 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 = \TestHelperHtml::getContext();
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $this->object = new \Aimeos\Client\Html\Catalog\Lists\Quote\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, array('text'));
     if (($catItem = reset($catItems)) === false) {
         throw new \Exception('No catalog item found');
     }
     $view = \TestHelperHtml::getView();
     $view->listCatPath = array($catalogManager->createItem(), $catItem);
     $this->object->setView($view);
 }
開發者ID:mvnp,項目名稱:aimeos-core,代碼行數:22,代碼來源:StandardTest.php

示例15: testProcessNoService

 public function testProcessNoService()
 {
     $view = $this->object->getView();
     $param = array('c_step' => 'process');
     $helper = new \Aimeos\MW\View\Helper\Param\Standard($view, $param);
     $view->addHelper('param', $helper);
     $orderid = $this->getOrder('2008-02-15 12:34:56')->getId();
     $this->context->getSession()->set('aimeos/orderid', $orderid);
     $paths = \TestHelperHtml::getHtmlTemplatePaths();
     $mock = $this->getMockBuilder('\\Aimeos\\Client\\Html\\Checkout\\Standard\\Process\\Standard')->setConstructorArgs(array($this->context, $paths))->setMethods(array('getOrderServiceCode'))->getMock();
     $mock->expects($this->once())->method('getOrderServiceCode')->will($this->returnValue(null));
     $mock->setView($view);
     $mock->process();
     $this->assertEquals(0, count($view->get('standardErrorList', array())));
     $this->assertEquals(0, count($view->get('standardProcessParams', array())));
     $this->assertEquals('GET', $view->standardMethod);
     $this->assertEquals('http://baseurl/checkout/standard/?c_step=payment', $view->standardUrlPayment);
 }
開發者ID:skyheights,項目名稱:aimeos-core,代碼行數:18,代碼來源:StandardTest.php


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