StatisticsReportsTestCase::testRecentHits

7 statistics.test StatisticsReportsTestCase::testRecentHits()
8 statistics.test StatisticsReportsTestCase::testRecentHits()

Verifies that 'Recent hits' renders properly and displays the added hit.

File

modules/statistics/statistics.test, line 159
Tests for statistics.module.

Code

function testRecentHits() {
  $this->drupalGet('admin/reports/hits');
  $this->assertText('test', t('Hit title found.'));
  $this->assertText('node/1', t('Hit URL found.'));
  $this->assertText('Anonymous', t('Hit user found.'));
}
Login or register to post comments