Update form::getFields to return also nested fields
[MAILPOET-2609]
This commit is contained in:
committed by
Pavel Dohnal
parent
0c64c38e61
commit
7bf1b69a94
@ -105,13 +105,27 @@ class FormTest extends \MailPoetTest {
|
||||
'type' => 'text',
|
||||
'id' => 2,
|
||||
],
|
||||
[
|
||||
'type' => 'columns',
|
||||
'body' => [
|
||||
[
|
||||
'type' => 'column',
|
||||
'body' => [
|
||||
[
|
||||
'type' => 'text',
|
||||
'id' => 3,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'submit',
|
||||
'id' => 'submit',
|
||||
],
|
||||
],
|
||||
]);
|
||||
expect($form->getFieldList())->equals(['email', 'cf_2']);
|
||||
expect($form->getFieldList())->equals(['email', 'cf_2', 'cf_3']);
|
||||
}
|
||||
|
||||
public function testItUpdatesSuccessMessagesWhenConfirmationIsDisabled() {
|
||||
|
Reference in New Issue
Block a user