Verifies that 'Top referrers' renders properly and displays the added hit.
File
- drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsReportsTest.php, line 44
- Definition of Drupal\statistics\Tests\StatisticsReportsTest.
Class
- StatisticsReportsTest
- Tests that report pages render properly, and that access logging works.
Namespace
Drupal\statistics\Tests
Code
function testTopReferrers() {
$this
->drupalGet('admin/reports/referrers');
$this
->assertText('http://example.com', 'Hit referrer found.');
}