public function testGetBaseCurrency() { $currency = $this->_model->getBaseCurrency(); $this->assertInstanceOf('Magento\\Directory\\Model\\Currency', $currency); $this->assertEquals('USD', $currency->getCode()); }
/** * {@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); } }
/** * Get all websites value with currency code * * @return string */ public function getAllWebsitesValue() { return AdvancedPricing::VALUE_ALL_WEBSITES . ' [' . $this->websiteModel->getBaseCurrency()->getCurrencyCode() . ']'; }