This commit is contained in:
Ingo Schommer 2011-12-21 17:22:47 +01:00
parent 1914f0b29d
commit 0194080951

View File

@ -48,8 +48,8 @@ class CMSPageHistoryControllerTest extends FunctionalTest {
$this->assertTrue($form->Actions()->dataFieldByName('action_doRollback')->isReadonly()); $this->assertTrue($form->Actions()->dataFieldByName('action_doRollback')->isReadonly());
$this->assertEquals($this->page->ID, $form->dataFieldByName('ID')->Value()); $this->assertEquals($this->page->ID, $form->Fields()->dataFieldByName('ID')->Value());
$this->assertEquals($this->versionPublishCheck2, $form->dataFieldByName('Version')->Value()); $this->assertEquals($this->versionPublishCheck2, $form->Fields()->dataFieldByName('Version')->Value());
$this->assertContains( $this->assertContains(
sprintf("Currently viewing version %s.", $this->versionPublishCheck2), sprintf("Currently viewing version %s.", $this->versionPublishCheck2),
@ -60,8 +60,8 @@ class CMSPageHistoryControllerTest extends FunctionalTest {
$form = $controller->getEditForm($this->page->ID, null, $this->versionPublishCheck); $form = $controller->getEditForm($this->page->ID, null, $this->versionPublishCheck);
$this->assertFalse($form->Actions()->dataFieldByName('action_doRollback')->isReadonly()); $this->assertFalse($form->Actions()->dataFieldByName('action_doRollback')->isReadonly());
$this->assertEquals($this->page->ID, $form->dataFieldByName('ID')->Value()); $this->assertEquals($this->page->ID, $form->Fields()->dataFieldByName('ID')->Value());
$this->assertEquals($this->versionPublishCheck, $form->dataFieldByName('Version')->Value()); $this->assertEquals($this->versionPublishCheck, $form->Fields()->dataFieldByName('Version')->Value());
$this->assertContains( $this->assertContains(
sprintf("Currently viewing version %s.", $this->versionPublishCheck), sprintf("Currently viewing version %s.", $this->versionPublishCheck),
$form->Fields()->fieldByName('Root.Main.CurrentlyViewingMessage')->getContent() $form->Fields()->fieldByName('Root.Main.CurrentlyViewingMessage')->getContent()