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


PHP EcomDev_PHPUnit_Test_Case::setup方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setup();
     $this->_helper = Mage::helper('ops/payment');
     $this->store = Mage::app()->getStore(0)->load(0);
     $this->store->resetConfig();
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:7,代码来源:PaymentTest.php

示例2: setUp

 public function setUp()
 {
     parent::setup();
     $this->_helper = Mage::helper('ops/directlink');
     $transaction = Mage::getModel('sales/order_payment_transaction');
     $transaction->setAdditionalInformation('arrInfo', serialize(array('amount' => '184.90')));
     $transaction->setIsClosed(0);
     $this->_transaction = $transaction;
     $this->_order = Mage::getModel('sales/order');
     $this->_order->setGrandTotal('184.90');
     $this->_order->setBaseGrandTotal('184.90');
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:12,代码来源:DirectLinkTest.php

示例3: setUp

 /**
  * Set up controller params
  */
 protected function setUp()
 {
     /**
      * Mock session to avoid BUG
      * "Exception: Warning: session_start(): Cannot send session cookie - headers already sent by"
      */
     $sessionMock = $this->getModelMock('customer/session', array('init', 'renewSession', 'start'));
     $this->replaceByMock('model', 'customer/session', $sessionMock);
     $sessionMock = $this->getModelMock('checkout/session', array('init', 'renewSession', 'start'));
     $this->replaceByMock('model', 'checkout/session', $sessionMock);
     //Basic Setup
     $this->store = Mage::app()->getStore(0)->load(0);
     $_baseUrl = Mage::getStoreConfig('web/unsecure/base_url');
     $this->app()->getRequest()->setBaseUrl($_baseUrl);
     parent::setup();
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:19,代码来源:ValidateTest.php

示例4: setup

 public function setup()
 {
     AW_Collpur_Test_Model_Mocks_Foreignresetter::dropForeignKeys();
     parent::setup();
 }
开发者ID:bigtailbear14,项目名称:rosstheme,代码行数:5,代码来源:AW_Collpur_Test_Model_Deal.php

示例5: setUp

 public function setUp()
 {
     parent::setup();
     $this->_model = Mage::getModel('ops/payment_cc');
     $this->_payment = ObjectHandler::getObject('quoteBeforeSaveOrder')->getPayment();
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:6,代码来源:CcTest.php

示例6: setUp

 public function setUp()
 {
     parent::setup();
     $this->block = Mage::app()->getLayout()->getBlockSingleton('ops/alias_list');
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:5,代码来源:ListTest.php

示例7: setUp

 public function setUp()
 {
     parent::setup();
     $this->_helper = Mage::helper('ops/alias');
     $this->store = Mage::app()->getStore(0)->load(0);
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:6,代码来源:AliasTest.php

示例8: setUp

 public function setUp()
 {
     parent::setup();
     $this->_model = Mage::getModel('ops/api_directlink');
     $this->_shaKey = 'ksdf239sdnkvs2e9';
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:6,代码来源:DirectLinkShaTest.php

示例9: setUp

 public function setUp()
 {
     parent::setup();
     $this->helper = Mage::helper('ops/version');
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:5,代码来源:VersionTest.php

示例10: setUp

 public function setUp()
 {
     parent::setup();
     $this->_helper = new Netresearch_OPS_Helper_Payment();
     $this->_shaKey = 'qu4rkkuchen12345';
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:6,代码来源:PlaceFormShaTest.php


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