public function FixedRatesOverviewTest::setUp in Currency 8.3
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Controller/ FixedRatesOverviewTest.php, line 69
Class
- FixedRatesOverviewTest
- @coversDefaultClass \Drupal\currency\Controller\FixedRatesOverview
Namespace
Drupal\Tests\currency\Unit\ControllerCode
public function setUp() : void {
$this->currencyStorage = $this
->createMock(EntityStorageInterface::class);
$this->currencyAmountFormatterManager = $this
->createMock(AmountFormatterManagerInterface::class);
$this->currencyExchangeRateProviderManager = $this
->createMock(ExchangeRateProviderManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->urlGenerator = $this
->createMock(UrlGeneratorInterface::class);
$this->sut = new FixedRatesOverview($this->stringTranslation, $this->urlGenerator, $this->currencyStorage, $this->currencyAmountFormatterManager, $this->currencyExchangeRateProviderManager);
}