You are here

function StatisticsReportsTestCase::testTopPages in Drupal 7

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

File

modules/statistics/statistics.test, line 189
Tests for the Statistics module.

Class

StatisticsReportsTestCase
Tests that report pages render properly, and that access logging works.

Code

function testTopPages() {
  $this
    ->drupalGet('admin/reports/pages');
  $this
    ->assertText('test', 'Hit title found.');
  $this
    ->assertText('node/1', 'Hit URL found.');
}