function StatisticsReportsTestCase::testTopReferrers
7.x statistics.test | StatisticsReportsTestCase::testTopReferrers() |
Verifies that 'Top referrers' renders properly and displays the added hit.
File
- drupal-7.x/
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.');
}