/**
  * Checks if order was made using PayPal payment method.
  * Expected result- false
  */
 public function testIsPayPalOrder_False()
 {
     $oPayPalOrder = new oePayPalOrder_PayPal();
     $soxId = '_testOrderId';
     $oSession = new oxSession();
     $oSession->setVariable('saved_oxid', $soxId);
     $oOrder = new oxOrder();
     $oOrder->setId($soxId);
     $oOrder->oxorder__oxpaymenttype = new oxField('other');
     $oOrder->save();
     $this->assertFalse($oPayPalOrder->isPayPalOrder());
 }
 /**
  * Test case for oePayPalOxOrder::deletePayPalOrder()
  *
  * @return null
  */
 public function testDeletePayPalOrder()
 {
     $oTestOrder = new oxOrder();
     $oTestOrder->setId('_testOrderId');
     $oTestOrder->save();
     $this->getSession()->setVariable('sess_challenge', '_testOrderId');
     $oOrder = new oePayPalOxOrder();
     $oOrder->deletePayPalOrder();
     $oUpdatedOrder = new oxOrder();
     $this->assertFalse($oUpdatedOrder->load('_testOrderId'));
 }