You are here

protected function MatomoBasicTest::setUp in Matomo Analytics 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MatomoBasicTest.php, line 39

Class

MatomoBasicTest
Test basic 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->noSnippetUser = $this
    ->drupalCreateUser($permissions);
  $permissions[] = 'add js snippets for matomo';
  $this->admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->admin_user);
}