public function PluginBasedExchangeRateProviderTest::setUp in Currency 8.3
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ PluginBasedExchangeRateProviderTest.php, line 43
Class
- PluginBasedExchangeRateProviderTest
- @coversDefaultClass \Drupal\currency\PluginBasedExchangeRateProvider
Namespace
Drupal\Tests\currency\UnitCode
public function setUp() : void {
$this->configFactory = $this
->getMockBuilder(ConfigFactoryInterface::class)
->disableOriginalConstructor()
->getMock();
$this->currencyExchangeRateProviderManager = $this
->createMock(ExchangeRateProviderManagerInterface::class);
$this->sut = new PluginBasedExchangeRateProvider($this->currencyExchangeRateProviderManager, $this->configFactory);
}