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