public function CurrencyListBuilderTest::setUp in Currency 8.3
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Entity/ Currency/ CurrencyListBuilderTest.php, line 60
Class
- CurrencyListBuilderTest
- @coversDefaultClass \Drupal\currency\Entity\Currency\CurrencyListBuilder
Namespace
Drupal\Tests\currency\Unit\Entity\CurrencyCode
public function setUp() : void {
$this->entityStorage = $this
->createMock(EntityStorageInterface::class);
$this->entityType = $this
->createMock(EntityTypeInterface::class);
$this->moduleHandler = $this
->createMock(ModuleHandlerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = new CurrencyListBuilder($this->entityType, $this->entityStorage, $this->stringTranslation, $this->moduleHandler);
}