function StatisticsReportsTest::testDetails

Verifies that 'Details' page renders properly and displays the added hit.

File

drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsReportsTest.php, line 52
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 testDetails() {
  $this
    ->drupalGet('admin/reports/access/1');
  $this
    ->assertText('test', 'Hit title found.');
  $this
    ->assertText('node/1', 'Hit URL found.');
  $this
    ->assertText('Anonymous', 'Hit user found.');
}