function StatisticsReportsTestCase::testTopReferrers in Drupal 7
Verifies that 'Top referrers' renders properly and displays the added hit.
File
- modules/
statistics/ statistics.test, line 198 - Tests for the Statistics module.
Class
- StatisticsReportsTestCase
- Tests that report pages render properly, and that access logging works.
Code
function testTopReferrers() {
$this
->drupalGet('admin/reports/referrers');
$this
->assertText('http://example.com', 'Hit referrer found.');
}