function StatisticsReportsTestCase::testDetails in Drupal 7
Verifies that 'Details' page renders properly and displays the added hit.
File
- modules/
statistics/ statistics.test, line 206 - Tests for the Statistics module.
Class
- StatisticsReportsTestCase
- Tests that report pages render properly, and that access logging works.
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.');
}