Esempio n. 1
0
 public function setUp()
 {
     parent::setup();
     $this->_helper = Mage::helper('ops/payment');
     $this->store = Mage::app()->getStore(0)->load(0);
     $this->store->resetConfig();
 }
Esempio n. 2
0
 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');
 }
 /**
  * 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();
 }
 public function setup()
 {
     AW_Collpur_Test_Model_Mocks_Foreignresetter::dropForeignKeys();
     parent::setup();
 }
Esempio n. 5
0
 public function setUp()
 {
     parent::setup();
     $this->_model = Mage::getModel('ops/payment_cc');
     $this->_payment = ObjectHandler::getObject('quoteBeforeSaveOrder')->getPayment();
 }
Esempio n. 6
0
 public function setUp()
 {
     parent::setup();
     $this->block = Mage::app()->getLayout()->getBlockSingleton('ops/alias_list');
 }
Esempio n. 7
0
 public function setUp()
 {
     parent::setup();
     $this->_helper = Mage::helper('ops/alias');
     $this->store = Mage::app()->getStore(0)->load(0);
 }
 public function setUp()
 {
     parent::setup();
     $this->_model = Mage::getModel('ops/api_directlink');
     $this->_shaKey = 'ksdf239sdnkvs2e9';
 }
Esempio n. 9
0
 public function setUp()
 {
     parent::setup();
     $this->helper = Mage::helper('ops/version');
 }
Esempio n. 10
0
 public function setUp()
 {
     parent::setup();
     $this->_helper = new Netresearch_OPS_Helper_Payment();
     $this->_shaKey = 'qu4rkkuchen12345';
 }