Permalink
Browse files

MINOR Fixed broken CMSPageHistoryControllerTest assuming IDs

  • Loading branch information...
1 parent 0c0d0d8 commit 748c0196cc24da43053e2c1878f4a83b410b1a6c @halkyon halkyon committed Oct 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/controller/CMSPageHistoryControllerTest.php
@@ -94,7 +94,7 @@ function testVersionsForm() {
$hidden = $form[0]->xpath("fieldset/input[@type='hidden']");
$this->assertThat($hidden, $this->logicalNot($this->isNull()), 'Hidden ID field exists');
- $this->assertEquals(4, (int) $hidden[0]->attributes()->value);
+ $this->assertEquals($this->page->ID, (int) $hidden[0]->attributes()->value);
// ensure that all the versions are present in the table and displayed
$rows = $form[0]->xpath("fieldset/table/tbody/tr");

0 comments on commit 748c019

Please sign in to comment.