update
This commit is contained in:
@@ -58,7 +58,11 @@ class StatisticsAdminTest extends BrowserTestBase {
|
||||
if ($this->profile != 'standard') {
|
||||
$this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
|
||||
}
|
||||
$this->privilegedUser = $this->drupalCreateUser(['administer statistics', 'view post access counter', 'create page content']);
|
||||
$this->privilegedUser = $this->drupalCreateUser([
|
||||
'administer statistics',
|
||||
'view post access counter',
|
||||
'create page content',
|
||||
]);
|
||||
$this->drupalLogin($this->privilegedUser);
|
||||
$this->testNode = $this->drupalCreateNode(['type' => 'page', 'uid' => $this->privilegedUser->id()]);
|
||||
$this->client = \Drupal::httpClient();
|
||||
|
||||
@@ -53,7 +53,10 @@ class IntegrationTest extends ViewTestBase {
|
||||
ViewTestData::createTestViews(get_class($this), ['statistics_test_views']);
|
||||
|
||||
// Create a new user for viewing nodes and statistics.
|
||||
$this->webUser = $this->drupalCreateUser(['access content', 'view post access counter']);
|
||||
$this->webUser = $this->drupalCreateUser([
|
||||
'access content',
|
||||
'view post access counter',
|
||||
]);
|
||||
|
||||
// Create a new user for viewing nodes only.
|
||||
$this->deniedUser = $this->drupalCreateUser(['access content']);
|
||||
|
||||
Reference in New Issue
Block a user