function StatisticsReportsTestCase::testAccessLogging
Verifies that access logging is working and is reported correctly.
File
-
modules/
statistics/ statistics.test, line 220
Class
- StatisticsReportsTestCase
- Tests that report pages render properly, and that access logging works.
Code
function testAccessLogging() {
$this->drupalGet('admin/reports/referrers');
$this->drupalGet('admin/reports/hits');
$this->assertText('Top referrers in the past 3 days', 'Hit title found.');
$this->assertText('admin/reports/referrers', 'Hit URL found.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.