You are here

function NodeRevisionsTest::testLogMessage in SimpleTest 6

Simpletest test. Tests to make sure the correct log message appears on "revisions overview" page.

File

tests/node_revisions.test, line 62

Class

NodeRevisionsTest

Code

function testLogMessage() {
  extract($this
    ->prepareRevisions(TRUE));
  $test_user = $this
    ->drupalCreateUserRolePerm(array(
    'view revisions',
  ));
  $this
    ->drupalLoginUser($test_user);
  $this
    ->drupalGet("node/{$node->nid}/revisions");
  $this
    ->assertText($log, 'Check to make sure log message is properly displayed.');
  $this
    ->cleanup($node->nid);
}