/**
  * @return array|null
  */
 public function getCurrencies()
 {
     return $this->rates->getRates();
 }
 /**
  * Exception when rates are not loaded.
  *
  * @expectedException \ONGR\CurrencyExchangeBundle\Exception\RatesNotLoadedException
  */
 public function testException()
 {
     $this->repositoryMock->expects($this->any())->method('execute')->willReturn([]);
     $pool = $this->getCachePool();
     $pool->expects($this->any())->method('getItem')->with('ongr_currency')->willReturn($this->getCacheItem([]));
     $service = new CurrencyRatesService($this->getDriverMock('EUR', []), $this->esManagerMock, $pool, false);
     $service->setLogger($this->getLogger());
     $service->getRates();
 }