當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。