public function setUp() { oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_orderpaymentcomments`'); oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_orderpayments`'); oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_order`'); oePayPalEvents::addOrderPaymentsCommentsTable(); oePayPalEvents::addOrderPaymentsTable(); oePayPalEvents::addOrderTable(); }
/** * Set up fixture. */ protected function setUp() { parent::setUp(); $this->getConfig()->setConfigParam('iUtfMode', '1'); oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_order`'); oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_orderpayments`'); oxDb::getDb()->execute('DROP TABLE IF EXISTS `oepaypal_orderpaymentcomments`'); oePayPalEvents::addOrderPaymentsTable(); oePayPalEvents::addOrderTable(); oePayPalEvents::addOrderPaymentsCommentsTable(); }
/** * Prepare OrderPayment object. * * @return oePayPalOrderPayment */ protected function getOrderPayment() { oePayPalEvents::addOrderPaymentsTable(); oePayPalEvents::addOrderTable(); $oOrderPayment = new oePayPalOrderPayment(); $oOrderPayment->setTransactionId('asdadsd45a4sd5a4sd54a5'); $oOrderPayment->setOrderId('order'); return $oOrderPayment; }