protected function FormattedPriceTest::setUp in Commerce Core 8.2
Overrides CommerceKernelTestBase::setUp
File
- modules/
price/ tests/ src/ Kernel/ FormattedPriceTest.php, line 30
Class
- FormattedPriceTest
- Tests the formatted price data type for price fields.
Namespace
Drupal\Tests\commerce_price\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installConfig([
'commerce_product',
]);
$currency_importer = $this->container
->get('commerce_price.currency_importer');
$currency_importer
->import('EUR');
}