Exemplo n.º 1
0
 public function testGetCurrencySymbol()
 {
     $currencySymbol = '$';
     $currencyMock = $this->getMockBuilder('\\Magento\\Framework\\Currency')->disableOriginalConstructor()->getMock();
     $currencyMock->expects($this->once())->method('getSymbol')->willReturn($currencySymbol);
     $this->localeCurrencyMock->expects($this->once())->method('getCurrency')->with($this->currencyCode)->willReturn($currencyMock);
     $this->assertEquals($currencySymbol, $this->currency->getCurrencySymbol());
 }
Exemplo n.º 2
0
 /**
  * @return string
  */
 public function getCurrencySymbol()
 {
     return $this->_currency->getCurrencySymbol();
 }