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