function StatisticsReportsTestCase::testRecentHits
7.x statistics.test | StatisticsReportsTestCase::testRecentHits() |
Verifies that 'Recent hits' renders properly and displays the added hit.
File
- drupal-7.x/
modules/ statistics/ statistics.test, line 179 - Tests for the Statistics module.
Class
- StatisticsReportsTestCase
- Tests that report pages render properly, and that access logging works.
Code
function testRecentHits() {
$this->drupalGet('admin/reports/hits');
$this->assertText('test', 'Hit title found.');
$this->assertText('node/1', 'Hit URL found.');
$this->assertText('Anonymous', 'Hit user found.');
}