Skip to content

Commit

Permalink
MINOR: fixed test to change a page before writing, otherwise alert do…
Browse files Browse the repository at this point in the history
…esn't go off
  • Loading branch information
Andreas Piening committed Oct 27, 2010
1 parent d826b71 commit 103c963
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ConcurrentEditingLeftAndMainTest.php
Expand Up @@ -67,6 +67,7 @@ function testConcurrentEditingPing() {

// Save the page and check we're shown as lastEditor
$oldVersion = $page->Version;
$page->Title = 'new ' . $page->Title;
$page->write();
$resp = $this->get(sprintf($url, $page->SaveCount, $page->ID));
$this->assertEquals($page->UsersCurrentlyEditing()->Count(), 2);
Expand All @@ -78,7 +79,4 @@ function testConcurrentEditingPing() {
$json['compareVersionsLink'], "Expected From={$oldVersion}&To={$page->Version}, got: " . var_export($json,1));
}

}


?>
}

0 comments on commit 103c963

Please sign in to comment.