예제 #1
0
 protected function setUp()
 {
     parent::setUp();
     $quote = Mage::getModel('Mage_Sales_Model_Quote');
     $quote->load('test01', 'reserved_order_id');
     Mage::getSingleton('Mage_Checkout_Model_Session')->setQuoteId($quote->getId());
 }
예제 #2
0
 protected function setUp()
 {
     parent::setUp();
     Mage::getSingleton('Mage_Backend_Model_Url')->turnOffSecretKey();
     $this->_auth = new Mage_Backend_Model_Auth();
     $this->_session = $this->_auth->getAuthStorage();
     $this->_auth->login(Magento_Test_Bootstrap::ADMIN_NAME, Magento_Test_Bootstrap::ADMIN_PASSWORD);
 }
예제 #3
0
 protected function setUp()
 {
     parent::setUp();
     Mage::app()->loadDiConfiguration(Mage_Core_Model_App_Area::AREA_ADMINHTML);
     Mage::getSingleton('Mage_Backend_Model_Url')->turnOffSecretKey();
     $this->_auth = Mage::getModel('Mage_Backend_Model_Auth');
     $this->_session = $this->_auth->getAuthStorage();
     $this->_auth->login(Magento_Test_Bootstrap::ADMIN_NAME, Magento_Test_Bootstrap::ADMIN_PASSWORD);
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     $order = Mage::getModel('Mage_Sales_Model_Order');
     $order->load('100000001', 'increment_id');
     $order->getPayment()->setMethod(Mage_Paypal_Model_Config::METHOD_PAYFLOWLINK);
     $order->save();
     $session = Mage::getSingleton('Mage_Checkout_Model_Session');
     $session->setLastRealOrderId($order->getRealOrderId())->setLastQuoteId($order->getQuoteId());
 }
예제 #5
0
 public function setUp()
 {
     parent::setUp();
     $this->_runOptions['is_installed'] = false;
 }
예제 #6
0
 protected function setUp()
 {
     parent::setUp();
     $this->_customerSession = Mage::getModel('Mage_Customer_Model_Session');
     $this->_customerSession->login('*****@*****.**', 'password');
 }
예제 #7
0
 public function setUp()
 {
     parent::setUp();
     // emulate non-installed application
     $this->_runOptions[Mage_Core_Model_Config::OPTION_LOCAL_CONFIG_EXTRA_DATA] = sprintf(Mage_Core_Model_Config::CONFIG_TEMPLATE_INSTALL_DATE, 'invalid');
 }