You are here

protected function GoogleAnalyticsRolesTest::setUp in Google Analytics 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/GoogleAnalyticsRolesTest.php \Drupal\Tests\google_analytics\Functional\GoogleAnalyticsRolesTest::setUp()
  2. 4.x tests/src/Functional/GoogleAnalyticsRolesTest.php \Drupal\Tests\google_analytics\Functional\GoogleAnalyticsRolesTest::setUp()

Overrides BrowserTestBase::setUp

File

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

Class

GoogleAnalyticsRolesTest
Test roles functionality of Google Analytics module.

Namespace

Drupal\Tests\google_analytics\Functional

Code

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

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