You are here

public function FixedRatesOperationsProviderTest::setUp in Currency 8.3

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Currency/ExchangeRateProvider/FixedRatesOperationsProviderTest.php, line 41

Class

FixedRatesOperationsProviderTest
@coversDefaultClass \Drupal\currency\Plugin\Currency\ExchangeRateProvider\FixedRatesOperationsProvider

Namespace

Drupal\Tests\currency\Unit\Plugin\Currency\ExchangeRateProvider

Code

public function setUp() : void {
  parent::setUp();
  $this->redirectDestination = $this
    ->createMock(RedirectDestinationInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new FixedRatesOperationsProvider($this->stringTranslation, $this->redirectDestination);
}