protected function StockLocationStorageTest::setUp in Commerce Stock 8
Overrides CommerceKernelTestBase::setUp
File
- modules/
local_storage/ tests/ src/ Kernel/ StockLocationStorageTest.php, line 34
Class
- StockLocationStorageTest
- Test the stock location storage.
Namespace
Drupal\Tests\commerce_stock_local\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_stock_location');
$this
->installEntitySchema('commerce_stock_location_type');
$this
->installConfig([
'commerce_stock',
]);
$this
->installConfig([
'commerce_stock_local',
]);
$this->locationStorage = $this->container
->get('entity_type.manager')
->getStorage('commerce_stock_location');
}