本文整理汇总了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();
}
示例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');
}
示例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();
}
示例4: setup
public function setup()
{
AW_Collpur_Test_Model_Mocks_Foreignresetter::dropForeignKeys();
parent::setup();
}
示例5: setUp
public function setUp()
{
parent::setup();
$this->_model = Mage::getModel('ops/payment_cc');
$this->_payment = ObjectHandler::getObject('quoteBeforeSaveOrder')->getPayment();
}
示例6: setUp
public function setUp()
{
parent::setup();
$this->block = Mage::app()->getLayout()->getBlockSingleton('ops/alias_list');
}
示例7: setUp
public function setUp()
{
parent::setup();
$this->_helper = Mage::helper('ops/alias');
$this->store = Mage::app()->getStore(0)->load(0);
}
示例8: setUp
public function setUp()
{
parent::setup();
$this->_model = Mage::getModel('ops/api_directlink');
$this->_shaKey = 'ksdf239sdnkvs2e9';
}
示例9: setUp
public function setUp()
{
parent::setup();
$this->helper = Mage::helper('ops/version');
}
示例10: setUp
public function setUp()
{
parent::setup();
$this->_helper = new Netresearch_OPS_Helper_Payment();
$this->_shaKey = 'qu4rkkuchen12345';
}