示例#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());
 }
示例#2
0
 /**
  * @return string
  */
 public function getCurrencySymbol()
 {
     return $this->_currency->getCurrencySymbol();
 }