diff --git a/tests/controller/CMSPageHistoryControllerTest.php b/tests/controller/CMSPageHistoryControllerTest.php old mode 100644 new mode 100755 index 09d3fca5..d0b6f1fb --- a/tests/controller/CMSPageHistoryControllerTest.php +++ b/tests/controller/CMSPageHistoryControllerTest.php @@ -94,7 +94,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest { $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");