From 748c0196cc24da43053e2c1878f4a83b410b1a6c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sun, 30 Oct 2011 00:19:26 +1300 Subject: [PATCH] MINOR Fixed broken CMSPageHistoryControllerTest assuming IDs --- tests/controller/CMSPageHistoryControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 tests/controller/CMSPageHistoryControllerTest.php 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");