function StatisticsReportsTest::testAccessLogging

Verifies that access logging is working and is reported correctly.

File

drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsReportsTest.php, line 62
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 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.');
}