예제 #1
0
 public function testGetBaseCurrency()
 {
     $currency = $this->_model->getBaseCurrency();
     $this->assertInstanceOf('Magento\\Directory\\Model\\Currency', $currency);
     $this->assertEquals('USD', $currency->getCode());
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getBaseCurrency()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getBaseCurrency');
     if (!$pluginInfo) {
         return parent::getBaseCurrency();
     } else {
         return $this->___callPlugins('getBaseCurrency', func_get_args(), $pluginInfo);
     }
 }
예제 #3
0
 /**
  * Get all websites value with currency code
  *
  * @return string
  */
 public function getAllWebsitesValue()
 {
     return AdvancedPricing::VALUE_ALL_WEBSITES . ' [' . $this->websiteModel->getBaseCurrency()->getCurrencyCode() . ']';
 }