You are here

function NodeRevisionsTest::testNodeRevisions in SimpleTest 6

Simpletest test. Tests to make sure the correct revision text appears on "view revisions" page.

File

tests/node_revisions.test, line 48

Class

NodeRevisionsTest

Code

function testNodeRevisions() {
  extract($this
    ->prepareRevisions());
  $test_user = $this
    ->drupalCreateUserRolePerm(array(
    'view revisions',
  ));
  $this
    ->drupalLoginUser($test_user);
  $this
    ->drupalGet("node/{$node->nid}/revisions/{$vid}/view");
  $this
    ->assertText($text, 'Check to make sure correct revision text appears on "view revisions" page.');
  $this
    ->cleanup($node->nid);
}