protected function MatomoSearchTest::setUp in Matomo Analytics 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ MatomoSearchTest.php, line 35
Class
- MatomoSearchTest
- Test search functionality of Matomo module.
Namespace
Drupal\Tests\matomo\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$permissions = [
'access administration pages',
'administer matomo',
'search content',
'create page content',
'edit own page content',
];
// User to set up matomo.
$this->admin_user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->admin_user);
}