public function testGetCurrencySymbolNonExistent() { $this->assertFalse($this->currencySymbolModel->getCurrencySymbol('AUD')); }
/** * @dataProvider getCurrencySymbolDataProvider */ public function testGetCurrencySymbol($code, $expectedSymbol, $serializedCustomSymbols) { $this->scopeConfigMock->expects($this->any())->method('getValue')->willReturnMap([[CurrencySymbol::XML_PATH_CUSTOM_CURRENCY_SYMBOL, ScopeInterface::SCOPE_STORE, null, $serializedCustomSymbols]]); $currencySymbol = $this->model->getCurrencySymbol($code); $this->assertEquals($expectedSymbol, $currencySymbol); }