protected function MinorUnitsConverterTest::setUp in Commerce Core 8.2
Overrides UnitTestCase::setUp
File
- modules/
price/ tests/ src/ Unit/ MinorUnitsConverterTest.php, line 31
Class
- MinorUnitsConverterTest
- Tests the MinorUnitsConverter class.
Namespace
Drupal\Tests\commerce_price\UnitCode
protected function setUp() : void {
parent::setUp();
$storage = $this
->prophesize(EntityStorageInterface::class);
$entity_type_manager = $this
->prophesize(EntityTypeManagerInterface::class);
$entity_type_manager
->getStorage('commerce_currency')
->willReturn($storage
->reveal());
$this->minorUnitsConverter = new MinorUnitsConverter(new CurrencyRepository($entity_type_manager
->reveal()));
}