/**
  * Get currencies with criterias
  *
  * @param array $criterias
  *
  * @return \Doctrine\Common\Persistence\mixed
  */
 public function getCurrencies($criterias = array())
 {
     return $this->repository->findBy($criterias);
 }
 function it_returns_empty_array_when_active_code_choices_not_found(CurrencyRepository $currencyRepository, Currency $currency)
 {
     $currencyRepository->findBy(['activated' => true])->willReturn([]);
     $currency->getCode()->willReturn([]);
     $this->getActiveCodeChoices()->shouldReturn([]);
 }