public function testConvertWithStoreCurrency() { $amount = 5.6; $currency = null; $convertedAmount = 9.300000000000001; $currentCurrency = $this->getCurrentCurrencyMock(); $baseCurrency = $this->getBaseCurrencyMock($amount, $convertedAmount, $currentCurrency); $store = $this->getStoreMock($baseCurrency); $store->expects($this->atLeastOnce())->method('getCurrentCurrency')->will($this->returnValue($currentCurrency)); $this->assertEquals($convertedAmount, $this->priceCurrency->convert($amount, $store, $currency)); }