コード例 #1
0
 /**
  * Save default shipping id.
  *
  * @param oxConfig       $oConfig       Config object to save.
  * @param string         $sShippingId   Shipping id.
  * @param oePayPalConfig $oPayPalConfig PayPal config.
  */
 protected function _saveECDefaultShippingId($oConfig, $sShippingId, $oPayPalConfig)
 {
     $sPayPalModuleId = 'module:' . $oPayPalConfig->getModuleId();
     $oConfig->saveShopConfVar('string', 'sOEPayPalMECDefaultShippingId', $sShippingId, null, $sPayPalModuleId);
 }
コード例 #2
0
 /**
  * Check if gets correct module id.
  */
 public function testGetModuleId()
 {
     $oConfig = new oePayPalConfig();
     $PayPalId = $oConfig->getModuleId();
     $this->assertEquals('oepaypal', $PayPalId, 'PayPal module should be oepaypal not ' . $PayPalId);
 }