mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-30 05:09:07 +02:00
MINOR Fixed broken CMSPageHistoryControllerTest assuming IDs
This commit is contained in:
parent
0c0d0d8695
commit
748c0196cc
2
tests/controller/CMSPageHistoryControllerTest.php
Normal file → Executable file
2
tests/controller/CMSPageHistoryControllerTest.php
Normal file → Executable file
@ -94,7 +94,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest {
|
|||||||
$hidden = $form[0]->xpath("fieldset/input[@type='hidden']");
|
$hidden = $form[0]->xpath("fieldset/input[@type='hidden']");
|
||||||
|
|
||||||
$this->assertThat($hidden, $this->logicalNot($this->isNull()), 'Hidden ID field exists');
|
$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
|
// ensure that all the versions are present in the table and displayed
|
||||||
$rows = $form[0]->xpath("fieldset/table/tbody/tr");
|
$rows = $form[0]->xpath("fieldset/table/tbody/tr");
|
||||||
|
Loading…
Reference in New Issue
Block a user