function StatisticsReportsTestCase::testAccessLogging

Verifies that access logging is working and is reported correctly.

File

drupal/modules/statistics/statistics.test, line 216
Tests for the Statistics module.

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.');
}