protected function InventoryTest::setUp in farmOS 2.x
Same name in this branch
- 2.x modules/core/inventory/tests/src/Functional/InventoryTest.php \Drupal\Tests\farm_inventory\Functional\InventoryTest::setUp()
- 2.x modules/core/inventory/tests/src/Kernel/InventoryTest.php \Drupal\Tests\farm_inventory\Kernel\InventoryTest::setUp()
Overrides KernelTestBase::setUp
File
- modules/
core/ inventory/ tests/ src/ Kernel/ InventoryTest.php, line 56
Class
- InventoryTest
- Tests for farmOS inventory logic.
Namespace
Drupal\Tests\farm_inventory\KernelCode
protected function setUp() : void {
parent::setUp();
$this->assetInventory = \Drupal::service('asset.inventory');
$this
->installEntitySchema('asset');
$this
->installEntitySchema('log');
$this
->installEntitySchema('user');
$this
->installEntitySchema('quantity');
$this
->installEntitySchema('taxonomy_term');
$this
->installConfig([
'farm_inventory_test',
'farm_quantity_standard',
]);
}