Exemplo n.º 1
0
 public function testGetDefaultCurrency()
 {
     /* currency operations require store to be loaded */
     $this->model->load('default');
     $this->assertEquals($this->model->getDefaultCurrencyCode(), $this->model->getDefaultCurrency()->getCode());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getDefaultCurrencyCode()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getDefaultCurrencyCode');
     if (!$pluginInfo) {
         return parent::getDefaultCurrencyCode();
     } else {
         return $this->___callPlugins('getDefaultCurrencyCode', func_get_args(), $pluginInfo);
     }
 }