mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR Deprecation fixes to the SubmittedFormTest
This commit is contained in:
parent
4e2854bb08
commit
4f50dd287e
@ -12,7 +12,7 @@ class SubmittedFormTest extends FunctionalTest {
|
||||
|
||||
$this->controller = new SubmittedFormTest_Controller($this->page);
|
||||
$this->form = $this->controller->Form();
|
||||
$this->field = $this->form->dataFieldByName('Report');
|
||||
$this->field = $this->form->Fields()->dataFieldByName('Report');
|
||||
}
|
||||
|
||||
function testSubmissions() {
|
||||
@ -110,7 +110,7 @@ class SubmittedFormTest extends FunctionalTest {
|
||||
|
||||
$fields = DataObject::get('SubmittedFormField', "\"ParentID\" = '$form->ID'");
|
||||
|
||||
$this->assertNull($fields);
|
||||
$this->assertEquals(array(), $fields->toArray());
|
||||
}
|
||||
|
||||
function testGetFormattedValue() {
|
||||
|
Loading…
Reference in New Issue
Block a user