You are here

protected function MatomoUserFieldsTest::setUp in Matomo Analytics 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MatomoUserFieldsTest.php, line 31

Class

MatomoUserFieldsTest
Test user fields functionality of Matomo module.

Namespace

Drupal\Tests\matomo\Functional

Code

protected function setUp() {
  parent::setUp();
  $permissions = [
    'access administration pages',
    'administer user form display',
    'opt-in or out of matomo tracking',
  ];

  // User to set up matomo.
  $this->admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->admin_user);
}