You are here

protected function InventoryTest::setUp in farmOS 2.x

Same name in this branch
  1. 2.x modules/core/inventory/tests/src/Functional/InventoryTest.php \Drupal\Tests\farm_inventory\Functional\InventoryTest::setUp()
  2. 2.x modules/core/inventory/tests/src/Kernel/InventoryTest.php \Drupal\Tests\farm_inventory\Kernel\InventoryTest::setUp()

Overrides FarmBrowserTestBase::setUp

File

modules/core/inventory/tests/src/Functional/InventoryTest.php, line 35

Class

InventoryTest
Tests for farmOS inventory logic.

Namespace

Drupal\Tests\farm_inventory\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create and login a user with permission to administer assets.
  $this->user = $this
    ->createUser([
    'administer assets',
  ]);
  $this
    ->drupalLogin($this->user);
}