function StatisticsReportsTest::testTopPages

Verifies that 'Top pages' renders properly and displays the added hit.

File

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