protected function GoogleAnalyticsRolesTest::setUp in Google Analytics 8.2
Same name and namespace in other branches
- 8.3 tests/src/Functional/GoogleAnalyticsRolesTest.php \Drupal\Tests\google_analytics\Functional\GoogleAnalyticsRolesTest::setUp()
- 4.x tests/src/Functional/GoogleAnalyticsRolesTest.php \Drupal\Tests\google_analytics\Functional\GoogleAnalyticsRolesTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ GoogleAnalyticsRolesTest.php, line 30
Class
- GoogleAnalyticsRolesTest
- Test roles functionality of Google Analytics module.
Namespace
Drupal\Tests\google_analytics\FunctionalCode
protected function setUp() {
parent::setUp();
$permissions = [
'access administration pages',
'administer google analytics',
];
// User to set up google_analytics.
$this->admin_user = $this
->drupalCreateUser($permissions);
}