You are here

protected function DashboardTest::setUp in farmOS 2.x

Overrides FarmBrowserTestBase::setUp

File

modules/core/ui/dashboard/tests/src/Functional/DashboardTest.php, line 32

Class

DashboardTest
Tests the farmOS dashboard functionality.

Namespace

Drupal\Tests\farm_ui_dashboard\Functional

Code

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

  // Create and login a user with necessary permissions.
  $this->user = $this
    ->createUser([
    'access farm dashboard',
  ]);
  $this
    ->drupalLogin($this->user);
}