function StatisticsAdminTestCase::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
statistics/ statistics.test, line 337
Class
- StatisticsAdminTestCase
- Tests the statistics administration screen.
Code
function setUp() {
parent::setUp('statistics');
$this->privileged_user = $this->drupalCreateUser(array(
'access statistics',
'administer statistics',
'view post access counter',
'create page content',
));
$this->drupalLogin($this->privileged_user);
$this->test_node = $this->drupalCreateNode(array(
'type' => 'page',
'uid' => $this->privileged_user->uid,
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.