MINOR Deprecation fixes to the SubmittedFormTest

This commit is contained in:
Stig Lindqvist 2012-05-07 11:23:17 +12:00
parent 4e2854bb08
commit 4f50dd287e

View File

@ -12,7 +12,7 @@ class SubmittedFormTest extends FunctionalTest {
$this->controller = new SubmittedFormTest_Controller($this->page); $this->controller = new SubmittedFormTest_Controller($this->page);
$this->form = $this->controller->Form(); $this->form = $this->controller->Form();
$this->field = $this->form->dataFieldByName('Report'); $this->field = $this->form->Fields()->dataFieldByName('Report');
} }
function testSubmissions() { function testSubmissions() {
@ -110,7 +110,7 @@ class SubmittedFormTest extends FunctionalTest {
$fields = DataObject::get('SubmittedFormField', "\"ParentID\" = '$form->ID'"); $fields = DataObject::get('SubmittedFormField', "\"ParentID\" = '$form->ID'");
$this->assertNull($fields); $this->assertEquals(array(), $fields->toArray());
} }
function testGetFormattedValue() { function testGetFormattedValue() {