Skip to content
Browse files

merge

  • Loading branch information...
1 parent 1914f0b commit 0194080951cf7a808d4be644c347ed4b81785d13 @chillu chillu committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/controller/CMSPageHistoryControllerTest.php
View
8 tests/controller/CMSPageHistoryControllerTest.php
@@ -48,8 +48,8 @@ function testGetEditForm() {
$this->assertTrue($form->Actions()->dataFieldByName('action_doRollback')->isReadonly());
- $this->assertEquals($this->page->ID, $form->dataFieldByName('ID')->Value());
- $this->assertEquals($this->versionPublishCheck2, $form->dataFieldByName('Version')->Value());
+ $this->assertEquals($this->page->ID, $form->Fields()->dataFieldByName('ID')->Value());
+ $this->assertEquals($this->versionPublishCheck2, $form->Fields()->dataFieldByName('Version')->Value());
$this->assertContains(
sprintf("Currently viewing version %s.", $this->versionPublishCheck2),
@@ -60,8 +60,8 @@ function testGetEditForm() {
$form = $controller->getEditForm($this->page->ID, null, $this->versionPublishCheck);
$this->assertFalse($form->Actions()->dataFieldByName('action_doRollback')->isReadonly());
- $this->assertEquals($this->page->ID, $form->dataFieldByName('ID')->Value());
- $this->assertEquals($this->versionPublishCheck, $form->dataFieldByName('Version')->Value());
+ $this->assertEquals($this->page->ID, $form->Fields()->dataFieldByName('ID')->Value());
+ $this->assertEquals($this->versionPublishCheck, $form->Fields()->dataFieldByName('Version')->Value());
$this->assertContains(
sprintf("Currently viewing version %s.", $this->versionPublishCheck),
$form->Fields()->fieldByName('Root.Main.CurrentlyViewingMessage')->getContent()

0 comments on commit 0194080

Please sign in to comment.
Something went wrong with that request. Please try again.