You are here

protected function MatomoRolesTest::setUp in Matomo Analytics 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MatomoRolesTest.php, line 32

Class

MatomoRolesTest
Test roles functionality of Matomo module.

Namespace

Drupal\Tests\matomo\Functional

Code

protected function setUp() {
  parent::setUp();
  $permissions = [
    'access administration pages',
    'administer matomo',
  ];

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