public function ExchangeRateProviderDecoratorTest::setUp in Currency 8.3
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ Currency/ ExchangeRateProvider/ ExchangeRateProviderDecoratorTest.php, line 42
Class
- ExchangeRateProviderDecoratorTest
- @coversDefaultClass \Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderDecorator
Namespace
Drupal\Tests\currency\Unit\Plugin\Currency\ExchangeRateProviderCode
public function setUp() : void {
$this->exchangeRateProvider = $this
->createMock(ExchangeRateProviderInterface::class);
$configuration = array();
$this->pluginId = $this
->randomMachineName();
$plugin_definition = array();
$this->sut = new ExchangeRateProviderDecorator($configuration, $this->pluginId, $plugin_definition, $this->exchangeRateProvider);
}